cgo: implement Go arrays (constant arrays in C)

This commit is contained in:
Ayke van Laethem
2019-04-11 14:20:53 +02:00
committed by Ron Evans
parent 684543b7f1
commit 536086988c
4 changed files with 14 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ _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};
short globalArray[3] = {5, 6, 7};
int fortytwo() {
return 42;