summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/dllexport.ll
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2010-02-16 09:30:23 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2010-02-16 09:30:23 +0000
commit6fe5c7aa327e188b7176daa5595bbf075a6b94df (patch)
tree4cfca640904d1896e25032757a61f8959c066919 /test/CodeGen/X86/dllexport.ll
parent989df958a10f0beb90b89ccadd8351cbe51d90b1 (diff)
downloadsrc-test2-6fe5c7aa327e188b7176daa5595bbf075a6b94df.tar.gz
src-test2-6fe5c7aa327e188b7176daa5595bbf075a6b94df.zip
Notes
Diffstat (limited to 'test/CodeGen/X86/dllexport.ll')
-rw-r--r--test/CodeGen/X86/dllexport.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/dllexport.ll b/test/CodeGen/X86/dllexport.ll
new file mode 100644
index 000000000000..2c699bfb0db4
--- /dev/null
+++ b/test/CodeGen/X86/dllexport.ll
@@ -0,0 +1,12 @@
+; RUN: llc < %s | FileCheck %s
+; PR2936
+
+target triple = "i386-mingw32"
+
+define dllexport x86_fastcallcc i32 @foo() nounwind {
+entry:
+ ret i32 0
+}
+
+; CHECK: .section .drectve
+; CHECK: -export:@foo@0 \ No newline at end of file