summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/CodeGen/X86/dll-linkage.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/dll-linkage.ll b/llvm/test/CodeGen/X86/dll-linkage.ll
new file mode 100644
index 00000000000..b20e60460c3
--- /dev/null
+++ b/llvm/test/CodeGen/X86/dll-linkage.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-mingw-pc | FileCheck %s
+
+declare dllimport void @foo()
+
+define void @bar() nounwind {
+; CHECK: call *__imp__foo
+ call void @foo()
+ ret void
+}
OpenPOWER on IntegriCloud