mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
cgo: implement struct types
Not complete: packed structs are treated as regular structs.
This commit is contained in:
committed by
Ron Evans
parent
bd8e47af80
commit
684543b7f1
Vendored
+1
@@ -8,6 +8,7 @@ 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;
|
||||
collection_t globalStruct = {256, -123456, 3.14};
|
||||
|
||||
int fortytwo() {
|
||||
return 42;
|
||||
|
||||
Reference in New Issue
Block a user