mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 05:53:39 +00:00
cgo: implement bool/float/complex types
This commit is contained in:
committed by
Ron Evans
parent
fab38a0749
commit
da345e8723
Vendored
+7
@@ -1,6 +1,13 @@
|
||||
#include "main.h"
|
||||
|
||||
int global = 3;
|
||||
_Bool globalBool = 1;
|
||||
_Bool globalBool2 = 10; // test narrowing
|
||||
float globalFloat = 3.1;
|
||||
double globalDouble = 3.2;
|
||||
_Complex float globalComplexFloat = 4.1+3.3i;
|
||||
_Complex double globalComplexDouble = 4.2+3.4i;
|
||||
_Complex double globalComplexLongDouble = 4.3+3.5i;
|
||||
|
||||
int fortytwo() {
|
||||
return 42;
|
||||
|
||||
Reference in New Issue
Block a user