summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/pr25786.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/pr25786.c')
-rw-r--r--clang/test/CodeGen/pr25786.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/pr25786.c b/clang/test/CodeGen/pr25786.c
new file mode 100644
index 00000000000..612da7e8a36
--- /dev/null
+++ b/clang/test/CodeGen/pr25786.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple i686-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK-OK
+
+void (__attribute__((regparm(3), stdcall)) *pf) ();
+void (__attribute__((regparm(2), stdcall)) foo)(int a) {
+}
+// CHECK: @pf = common global void (...)* null
+// CHECK: define void @foo(i32 %a)
+
+// CHECK-OK: @pf = common global void (...)* null
+// CHECK-OK: define x86_stdcallcc void @foo(i32 inreg %a)
OpenPOWER on IntegriCloud