summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll')
-rw-r--r--test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll b/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
new file mode 100644
index 000000000000..73544a7f709a
--- /dev/null
+++ b/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
@@ -0,0 +1,9 @@
+define weak i32 @baz() #0 {
+entry:
+ ret i32 0
+}
+
+define i8* @bar() {
+entry:
+ ret i8* bitcast (i32 ()* @baz to i8*)
+}