aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/fold-call-2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fold-call-2.ll')
-rw-r--r--test/CodeGen/X86/fold-call-2.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fold-call-2.ll b/test/CodeGen/X86/fold-call-2.ll
index e69de29..fe060a7 100644
--- a/test/CodeGen/X86/fold-call-2.ll
+++ b/test/CodeGen/X86/fold-call-2.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | grep mov | count 1
+; XFAIL: *
+
+@f = external global void ()* ; <void ()**> [#uses=1]
+
+define i32 @main() nounwind {
+entry:
+ load void ()** @f, align 8 ; <void ()*>:0 [#uses=1]
+ tail call void %0( ) nounwind
+ ret i32 0
+}