summaryrefslogtreecommitdiff
path: root/test/wasm/Inputs/hello.ll
diff options
context:
space:
mode:
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