summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fastcall-correct-mangling.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fastcall-correct-mangling.ll')
-rw-r--r--test/CodeGen/X86/fastcall-correct-mangling.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fastcall-correct-mangling.ll b/test/CodeGen/X86/fastcall-correct-mangling.ll
new file mode 100644
index 0000000000..bf8833dd2c
--- /dev/null
+++ b/test/CodeGen/X86/fastcall-correct-mangling.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mtriple=mingw32 | grep '@12'
+
+; Check that a fastcall function gets correct mangling
+
+x86_fastcallcc void %func(long %X, ubyte %Y, ubyte %G, ushort %Z) {
+ ret void
+}