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