mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 12:26:08 +00:00

This patch is to upgrade FunctionTypeUnwrapper for correct processing of AttributedType. Fixes PR25786. Patch by Alexander Makarov. Differential Revision: http://reviews.llvm.org/D15373 llvm-svn: 260373
12 lines
497 B
C
12 lines
497 B
C
// 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)
|