summaryrefslogtreecommitdiff
path: root/test/wasm_backend/globals_only.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm_backend/globals_only.cpp')
-rw-r--r--test/wasm_backend/globals_only.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/wasm_backend/globals_only.cpp b/test/wasm_backend/globals_only.cpp
deleted file mode 100644
index 9a2f1bcc8..000000000
--- a/test/wasm_backend/globals_only.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <emscripten.h>
-
-char c = 10;
-short s = 20;
-int i = 55;
-
-void print(int v) {
- int *x = (int*)8;
- *x = v;
- EM_ASM({
- Module.print("print: " + HEAP32[8>>2]);
- });
-}
-
-int main() {
- print(1);
- print(c);
- print(s);
- print(i);
-}
-