diff options
author | Damian Gryski <[email protected]> | 2022-12-07 09:45:03 -0800 |
---|---|---|
committer | Ayke <[email protected]> | 2022-12-07 23:11:40 +0100 |
commit | 86f125cf72e1cdab8add5add14dc8b1134bef042 (patch) | |
tree | b049349bddd6e8768d6de01bf4ca8cbc79de747f /testdata | |
parent | 5293d3e5f0fca3afb73295e114fe9f151766b17f (diff) | |
download | tinygo-86f125cf72e1cdab8add5add14dc8b1134bef042.tar.gz tinygo-86f125cf72e1cdab8add5add14dc8b1134bef042.zip |
reflect: track flags when size changes from fits-in-pointer to not
Fixes #3328
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/reflect.go | 1 | ||||
-rw-r--r-- | testdata/reflect.txt | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/testdata/reflect.go b/testdata/reflect.go index 06bec5758..47359e66e 100644 --- a/testdata/reflect.go +++ b/testdata/reflect.go @@ -129,6 +129,7 @@ func main() { &linkedList{ foo: 42, }, + struct{ A, B uintptr }{2, 3}, // interfaces []interface{}{3, "str", -4 + 2.5i}, } { diff --git a/testdata/reflect.txt b/testdata/reflect.txt index 26d7b8b46..03a7e5e59 100644 --- a/testdata/reflect.txt +++ b/testdata/reflect.txt @@ -334,6 +334,20 @@ reflect type: ptr exported: false reflect type: int addrable=true caninterface=false int: 42 +reflect type: struct + struct: 2 + field: 0 A + tag: + embedded: false + exported: true + reflect type: uintptr + uint: 2 + field: 1 B + tag: + embedded: false + exported: true + reflect type: uintptr + uint: 3 reflect type: slice comparable=false slice: interface 3 3 pointer: true |