cgo: implement struct types

Not complete: packed structs are treated as regular structs.
This commit is contained in:
Ayke van Laethem
2019-04-11 14:03:08 +02:00
committed by Ron Evans
parent bd8e47af80
commit 684543b7f1
4 changed files with 73 additions and 4 deletions
+1
View File
@@ -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;