diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-01 20:55:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-01 20:55:49 -0800 |
commit | 4990b96eaa6ce91ecbb84b784df5622f9742f47e (patch) | |
tree | c8564b477f809526ceaaff9263d845982c00701b /test/mem.cpp | |
parent | d8c2d69dd253bd6f67e1f3c374be2c20d43dfc03 (diff) | |
download | binaryen-4990b96eaa6ce91ecbb84b784df5622f9742f47e.tar.gz binaryen-4990b96eaa6ce91ecbb84b784df5622f9742f47e.tar.bz2 binaryen-4990b96eaa6ce91ecbb84b784df5622f9742f47e.zip |
add stack test for an imported mapped global
Diffstat (limited to 'test/mem.cpp')
-rw-r--r-- | test/mem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; +} + } |