summaryrefslogtreecommitdiff
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
commitf4a9774e2b2a6279a83d9f7d78a4abfafc2fd3fd (patch)
tree7a6e72b30e51f99b5319a7aa63d483682bf592f8
parent0a249a8ae519ba30e869c66e96b2d2c79d49809f (diff)
downloadllvm-f4a9774e2b2a6279a83d9f7d78a4abfafc2fd3fd.tar.gz
llvm-f4a9774e2b2a6279a83d9f7d78a4abfafc2fd3fd.tar.bz2
llvm-f4a9774e2b2a6279a83d9f7d78a4abfafc2fd3fd.tar.xz
we have no tests for dllimport/export. Add one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75085 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/dll-linkage.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/dll-linkage.ll b/test/CodeGen/X86/dll-linkage.ll
new file mode 100644
index 0000000000..b20e60460c
--- /dev/null
+++ b/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
+}