From 4990b96eaa6ce91ecbb84b784df5622f9742f47e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 1 Nov 2015 20:55:49 -0800 Subject: add stack test for an imported mapped global --- test/mem.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/mem.cpp') diff --git a/test/mem.cpp b/test/mem.cpp index a48d2e3d2..e45149df1 100644 --- a/test/mem.cpp +++ b/test/mem.cpp @@ -25,5 +25,10 @@ void EMSCRIPTEN_KEEPALIVE storeu32(size_t addr, uint32_t v) { ((uint32_t*)addr)[ void EMSCRIPTEN_KEEPALIVE storef32(size_t addr, float v) { ((float*)addr)[0] = v; } void EMSCRIPTEN_KEEPALIVE storef64(size_t addr, double v) { ((double*)addr)[0] = v; } +int* EMSCRIPTEN_KEEPALIVE get_stack() { + int t; + return &t; +} + } -- cgit v1.2.3