Yaxun Liu | e45b3d5 | 2017-10-24 19:14:43 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple amdgcn---amdgizcl -debug-info-kind=limited -O0 -emit-llvm -o - %s | FileCheck %s |
2 | |||||
3 | typedef struct | ||||
4 | { | ||||
5 | int a; | ||||
6 | } Struct; | ||||
7 | |||||
8 | Struct func1(); | ||||
9 | |||||
10 | void func2(Struct S); | ||||
11 | |||||
12 | void func3() | ||||
13 | { | ||||
14 | // CHECK: call i32 @func1() #{{[0-9]+}}, !dbg ![[LOC:[0-9]+]] | ||||
15 | // CHECK: call void @func2(i32 %{{[0-9]+}}) #{{[0-9]+}}, !dbg ![[LOC]] | ||||
16 | func2(func1()); | ||||
17 | } | ||||
18 |