github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/testdata/cgo/out.txt (about) 1 fortytwo: 42 2 add: 8 3 myint: 3 5 4 myint size: 2 5 longlong: -1099511627776 6 global: 3 7 defined ints: 5 5 8 defined floats: +5.800000e+000 +5.800000e+000 9 defined string: defined string 10 defined char: 99 11 defined expr: 9 12 15: 15 13 25: 25 14 callback 1: 50 15 callback 2: 600 16 callback inside generic function: 50 17 variadic0: 1 18 variadic2: 15 19 headerfunc: 6 20 static headerfunc: 4 21 static headerfunc 2: +4.000000e+000 22 static headerfunc void: 3 23 bool: true true 24 float: +3.100000e+000 25 double: +3.200000e+000 26 complex float: (+4.100000e+000+3.300000e+000i) 27 complex double: (+4.200000e+000+3.400000e+000i) 28 complex long double: (+4.300000e+000+3.500000e+000i) 29 char match: true 30 void* match: true true true 31 int64_t match: true 32 struct: true 256 -123456 +3.140000e+000 33 array: 5 6 7 34 union: true 35 union s: 22 36 union f (C.float): +6.280000e+000 37 union f (float32): +3.140000e+000 38 union global data: 5 8 1 39 union local data: 5 8 1 40 union s: true 41 union f: +6.280000e+000 42 union field: +6.280000e+000 43 bitfield a: 15 44 bitfield b: 1 45 bitfield c: 2 46 bitfield d: 47 47 bitfield e: 5 48 bitfield a: 7 49 bitfield b: 0 50 bitfield c: 3 51 bitfield d: 47 52 bitfield e: 5 53 struct: 3 5 54 n in chain: 3 55 n in chain: 6 56 n in chain: 7 57 option: 12 58 option A: 0 59 option B: 1 60 option C: -5 61 option D: -4 62 option E: 10 63 option F: 11 64 option G: 12 65 option 2A: 20 66 option 3A: 21 67 enum width matches: true 68 CFLAGS value: 17 69 cstr length: 18 70 C.CString: string passed to C 71 C.charBuf: 2 0 4 8 72 C.CStringN: 4 2 0 4 8 73 C.GoString(nil): 74 len(C.GoStringN(nil, 0)): 0 75 len(C.GoBytes(nil, 0)): 0 76 copied string: foobar 77 line written using C puts