diff options
author | Jaden Weiss <[email protected]> | 2020-02-26 15:54:00 -0500 |
---|---|---|
committer | Ayke <[email protected]> | 2020-02-27 16:35:31 +0100 |
commit | 6896b0014b62f7e8618b879cd2004582d5f7a672 (patch) | |
tree | 9a69f0bc08819d25fd9f7937ba87d25eb24ba190 /testdata/calls.txt | |
parent | 4dfc289ae5c8b55da6eab017e151972a1d803d5f (diff) | |
download | tinygo-6896b0014b62f7e8618b879cd2004582d5f7a672.tar.gz tinygo-6896b0014b62f7e8618b879cd2004582d5f7a672.zip |
compiler: fix deferred calls to exported functions
Previously using defer with an exported function generated an invalid function call due to differences between TinyGo's calling convention and the C calling convention.
Diffstat (limited to 'testdata/calls.txt')
-rw-r--r-- | testdata/calls.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testdata/calls.txt b/testdata/calls.txt index 875f54a04..b65e7d9a4 100644 --- a/testdata/calls.txt +++ b/testdata/calls.txt @@ -4,6 +4,7 @@ Thing.Print: foo arg: bar ...run as defer 3 ...run closure deferred: 4 ...run as defer 1 +...exported defer loop 3 loop 2 loop 1 |