2020-07-06 02:47:02 +08:00
|
|
|
// RUN: %clang_cc1 -triple amdgcn---amdgizcl -debug-info-kind=limited -gno-column-info -O0 -emit-llvm -o - %s | FileCheck %s
|
2017-10-25 03:14:43 +08:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int a;
|
|
|
|
} Struct;
|
|
|
|
|
2022-02-13 21:02:46 +08:00
|
|
|
Struct func1(void);
|
2017-10-25 03:14:43 +08:00
|
|
|
|
|
|
|
void func2(Struct S);
|
|
|
|
|
2022-02-13 21:02:46 +08:00
|
|
|
void func3(void)
|
2017-10-25 03:14:43 +08:00
|
|
|
{
|
|
|
|
// CHECK: call i32 @func1() #{{[0-9]+}}, !dbg ![[LOC:[0-9]+]]
|
|
|
|
// CHECK: call void @func2(i32 %{{[0-9]+}}) #{{[0-9]+}}, !dbg ![[LOC]]
|
|
|
|
func2(func1());
|
|
|
|
}
|
|
|
|
|