aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/dllexport.ll
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-02-12 15:29:13 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-02-12 15:29:13 +0000
commitda900a0cfd9af275b57410aff97bab7692afa8b8 (patch)
tree085edd8e79e07008085873dd22121847dae6560a /test/CodeGen/X86/dllexport.ll
parentbdc6e1bf04a2d95ff9f596e4cec9bd8635e3ff73 (diff)
downloadexternal_llvm-da900a0cfd9af275b57410aff97bab7692afa8b8.zip
external_llvm-da900a0cfd9af275b57410aff97bab7692afa8b8.tar.gz
external_llvm-da900a0cfd9af275b57410aff97bab7692afa8b8.tar.bz2
Testcases for recent stdcall / fastcall mangling improvements
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95982 91177308-0d34-0410-b5e6-96231b3b80d8
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 0000000..2c699bf
--- /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