summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-09 00:53:44 +0000
committerChris Lattner <sabre@nondot.org>2009-07-09 00:53:44 +0000
commit212f44d180521ffc695d13824e677196ff416b94 (patch)
tree1befcd45e18dccb2b618794ea97f231daea88ff6 /llvm/test
parent2a6135ef541f007e832df564f5bc4ff7985fb82d (diff)
downloadbcm5719-llvm-212f44d180521ffc695d13824e677196ff416b94.tar.gz
bcm5719-llvm-212f44d180521ffc695d13824e677196ff416b94.zip
we have no tests for dllimport/export. Add one.
llvm-svn: 75085
Diffstat (limited to 'llvm/test')
-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