Clang Project

clang_source_code/test/CodeGen/pr25786.c
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
4void (__attribute__((regparm(3), stdcall)) *pf) ();
5void (__attribute__((regparm(2), stdcall)) foo)(int a) {
6}
7// CHECK: @pf = common global void (...)* null
8// CHECK: define void @foo(i32 %a)
9
10// CHECK-OK: @pf = common global void (...)* null
11// CHECK-OK: define x86_stdcallcc void @foo(i32 inreg %a)
12