| 30 | volatile void* temp; |
| 31 | |
| 32 | __attribute__((noinline)) void foo() |
| 33 | { |
| 34 | temp = alloca(MAJOR); |
| 35 | printf("major allocation at: %ld\n", (long)temp); |
| 36 | assert(abs(emscripten_stack_get_current() - (long)temp) >= MAJOR); |
| 37 | bar(); |
| 38 | } |
| 39 | |
| 40 | int main() |
| 41 | { |