summaryrefslogtreecommitdiff
path: root/test/wasm/Inputs/hello.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-18 20:12:21 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-18 20:12:21 +0000
commiteb1ff93d02b5f17b6b409e83c6d9be585f4a04b3 (patch)
tree7490b4a8943293f251ad733465936e6ec302b3e9 /test/wasm/Inputs/hello.ll
parentbafea25f368c63f0b39789906adfed6e39219e64 (diff)
Notes
Diffstat (limited to 'test/wasm/Inputs/hello.ll')
-rw-r--r--test/wasm/Inputs/hello.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/wasm/Inputs/hello.ll b/test/wasm/Inputs/hello.ll
new file mode 100644
index 000000000000..93df0f559809
--- /dev/null
+++ b/test/wasm/Inputs/hello.ll
@@ -0,0 +1,15 @@
+; Wasm module generated from the following C code:
+; void puts(const char*);
+; void hello() { puts("hello\n"); }
+
+@hello_str = unnamed_addr constant [7 x i8] c"hello\0A\00", align 1
+
+; Function Attrs: nounwind
+define hidden void @hello() local_unnamed_addr #0 {
+entry:
+ tail call void @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @hello_str, i32 0, i32 0))
+ ret void
+}
+
+; Function Attrs: nounwind
+declare void @puts(i8* nocapture readonly) local_unnamed_addr #1