| 5 | int64_t big = 0x12345678aabbccddL; |
| 6 | |
| 7 | __attribute__((noinline)) |
| 8 | int64_t foobar(int64_t x, int y) { |
| 9 | x += EM_ASM_INT({ |
| 10 | return 0; // prevents llvm from seeing the final value |
| 11 | }); |
| 12 | if (x == 1337) { |
| 13 | throw 1; // looks like we might throw |
| 14 | } |
| 15 | return x + y; // use the int parameter too, to show they are all handled |
| 16 | } |
| 17 | |
| 18 | int main() { |
| 19 | int64_t x; |