tinygo/testdata
Ayke van Laethem 4957db89f4
compiler: fix interface calls for big underlying values
When the underlying value of an interface does not fit in a pointer, a
pointer to the value was correctly inserted in the heap. However, the
receiving method still assumed it got the underlying value instead of a
pointer to it leading to a crash.

This commit inserts wrapper functions for method calls on interfaces.

The bug wasn't obvious as on a 64-bit system, the underlying value was
almost always put directly in the interface. However, it led to a crash
on the AVR platform where pointer are (usually) just 16 bits making it
far more likely that underlying values cannot be directly stored in an
interface.
2018-10-07 02:06:48 +02:00
..
coroutines.go main: add coroutine/sleep tests 2018-09-29 00:11:58 +02:00
coroutines.txt main: add coroutine/sleep tests 2018-09-29 00:11:58 +02:00
float.go main: add basic float tests 2018-09-29 00:12:23 +02:00
float.txt main: add basic float tests 2018-09-29 00:12:23 +02:00
interface.go compiler: fix interface calls for big underlying values 2018-10-07 02:06:48 +02:00
interface.txt compiler: fix interface calls for big underlying values 2018-10-07 02:06:48 +02:00
print.go testdata: add better tests for struct expanding 2018-09-25 14:24:44 +02:00
print.txt testdata: add better tests for struct expanding 2018-09-25 14:24:44 +02:00
structexpand.go testdata: add better tests for struct expanding 2018-09-25 14:24:44 +02:00
structexpand.txt testdata: add better tests for struct expanding 2018-09-25 14:24:44 +02:00