diff options
author | Ayke van Laethem <[email protected]> | 2019-04-27 23:06:45 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-05-01 11:33:18 +0200 |
commit | 35af33ead794efd1f2e6e688cadf6ca54d68b5ac (patch) | |
tree | aecda8bea8fb67cbf0df2704a1f0f8c36a72edc3 /testdata/cgo/out.txt | |
parent | 4bd1b9e53d7e3978c0e242143380efa2d3ac1e16 (diff) | |
download | tinygo-35af33ead794efd1f2e6e688cadf6ca54d68b5ac.tar.gz tinygo-35af33ead794efd1f2e6e688cadf6ca54d68b5ac.zip |
cgo: improve typedef/struct/enum support
Typedefs are now Go type aliases. And C.struct_ and C.union_ prefixed
records work correctly now, even when they're not in a typedef.
Diffstat (limited to 'testdata/cgo/out.txt')
-rw-r--r-- | testdata/cgo/out.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testdata/cgo/out.txt b/testdata/cgo/out.txt index 9b193c5d5..ee34f0bd3 100644 --- a/testdata/cgo/out.txt +++ b/testdata/cgo/out.txt @@ -24,9 +24,10 @@ union s: 22 union f: +3.140000e+000 union global data: 5 8 1 union local data: 5 8 1 -union s method: -33 false +union s: true union f: +6.280000e+000 union field: +6.280000e+000 +struct: 3 5 n in chain: 3 n in chain: 6 n in chain: 7 |