summaryrefslogtreecommitdiffstats
path: root/test/Object/Inputs/trivial.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Object/Inputs/trivial.ll')
-rw-r--r--test/Object/Inputs/trivial.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Object/Inputs/trivial.ll b/test/Object/Inputs/trivial.ll
new file mode 100644
index 0000000..25ece76
--- /dev/null
+++ b/test/Object/Inputs/trivial.ll
@@ -0,0 +1,12 @@
+@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1
+
+define i32 @main() nounwind {
+entry:
+ %call = tail call i32 @puts(i8* getelementptr inbounds ([13 x i8]* @.str, i32 0, i32 0)) nounwind
+ tail call void bitcast (void (...)* @SomeOtherFunction to void ()*)() nounwind
+ ret i32 0
+}
+
+declare i32 @puts(i8* nocapture) nounwind
+
+declare void @SomeOtherFunction(...)
OpenPOWER on IntegriCloud