summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/emcc_O2_hello_world.wast18
-rw-r--r--test/emcc_hello_world.wast18
-rw-r--r--test/hello_world.c7
3 files changed, 31 insertions, 12 deletions
diff --git a/test/emcc_O2_hello_world.wast b/test/emcc_O2_hello_world.wast
index d767cc408..e9b95ce16 100644
--- a/test/emcc_O2_hello_world.wast
+++ b/test/emcc_O2_hello_world.wast
@@ -11450,7 +11450,8 @@
(get_local $i1)
(i32.const 3)
)
- (break $while-in$1
+ (nop)
+ (break $while-out$0
)
)
(block
@@ -11497,7 +11498,8 @@
(get_local $i3)
(i32.const 4)
)
- (break $while-in$3
+ (nop)
+ (break $while-out$2
)
)
(block
@@ -11537,7 +11539,8 @@
(get_local $i3)
(i32.const 0)
)
- (break $while-in$5
+ (nop)
+ (break $while-out$4
)
)
(block
@@ -11653,7 +11656,8 @@
(get_local $i1)
(get_local $i5)
)
- (break $while-in$1
+ (nop)
+ (break $while-out$0
)
)
(block
@@ -11679,7 +11683,8 @@
(get_local $i1)
(get_local $i7)
)
- (break $while-in$3
+ (nop)
+ (break $while-out$2
)
)
(block
@@ -11705,7 +11710,8 @@
(get_local $i1)
(get_local $i4)
)
- (break $while-in$5
+ (nop)
+ (break $while-out$4
)
)
(block
diff --git a/test/emcc_hello_world.wast b/test/emcc_hello_world.wast
index f3bde5d7c..96e96c614 100644
--- a/test/emcc_hello_world.wast
+++ b/test/emcc_hello_world.wast
@@ -24819,7 +24819,8 @@
(get_local $ptr)
(get_local $unaligned)
)
- (break $while-in$1
+ (nop)
+ (break $while-out$0
)
)
(block
@@ -24845,7 +24846,8 @@
(get_local $ptr)
(get_local $stop4)
)
- (break $while-in$3
+ (nop)
+ (break $while-out$2
)
)
(block
@@ -24871,7 +24873,8 @@
(get_local $ptr)
(get_local $stop)
)
- (break $while-in$5
+ (nop)
+ (break $while-out$4
)
)
(block
@@ -25050,7 +25053,8 @@
(get_local $dest)
(i32.const 3)
)
- (break $while-in$1
+ (nop)
+ (break $while-out$0
)
)
(block
@@ -25097,7 +25101,8 @@
(get_local $num)
(i32.const 4)
)
- (break $while-in$3
+ (nop)
+ (break $while-out$2
)
)
(block
@@ -25137,7 +25142,8 @@
(get_local $num)
(i32.const 0)
)
- (break $while-in$5
+ (nop)
+ (break $while-out$4
)
)
(block
diff --git a/test/hello_world.c b/test/hello_world.c
new file mode 100644
index 000000000..eb47ea813
--- /dev/null
+++ b/test/hello_world.c
@@ -0,0 +1,7 @@
+#include<stdio.h>
+
+int main() {
+ printf("hello, world!\n");
+ return 0;
+}
+