1 | // RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s |
---|---|
2 | |
3 | struct A { |
4 | int x[100]; |
5 | }; |
6 | |
7 | int f(struct A a); |
8 | |
9 | int g() { |
10 | struct A a; |
11 | // CHECK: call i32 @f(%struct.A addrspace(5)* byval{{.*}}%a) |
12 | return f(a); |
13 | } |
14 | |
15 | // CHECK: declare i32 @f(%struct.A addrspace(5)* byval{{.*}}) |
16 |