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