xref: /llvm-project/clang/test/CodeGen/pr25786.c (revision 39db5e1ed87363a9ffea81e53520b542201b3262)
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK-OK
3 
4 void (__attribute__((regparm(3), stdcall)) *pf) ();
5 void (__attribute__((regparm(2), stdcall)) foo)(int a) {
6 }
7 // CHECK: @pf ={{.*}} global ptr null
8 // CHECK: define{{.*}} void @foo(i32 noundef %a)
9 
10 // CHECK-OK: @pf ={{.*}} global ptr null
11 // CHECK-OK: define{{.*}} x86_stdcallcc void @foo(i32 inreg noundef %a)
12