summaryrefslogtreecommitdiff
path: root/test/torture-s/call-trap-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/call-trap-1.c.s')
-rw-r--r--test/torture-s/call-trap-1.c.s34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/torture-s/call-trap-1.c.s b/test/torture-s/call-trap-1.c.s
new file mode 100644
index 000000000..bdf7734cf
--- /dev/null
+++ b/test/torture-s/call-trap-1.c.s
@@ -0,0 +1,34 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/call-trap-1.c"
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .result i32
+# BB#0: # %entry
+ i32.const $push0=, 0
+ call exit, $pop0
+ unreachable
+func_end0:
+ .size foo, func_end0-foo
+
+ .globl bar
+ .type bar,@function
+bar: # @bar
+# BB#0: # %entry
+ return
+func_end1:
+ .size bar, func_end1-bar
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %entry
+ i32.call $discard=, foo
+ unreachable
+func_end2:
+ .size main, func_end2-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits