forked from OSchip/llvm-project
17 lines
362 B
Common Lisp
17 lines
362 B
Common Lisp
// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s
|
|
// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn---opencl %s | FileCheck %s
|
|
|
|
struct A {
|
|
int x[100];
|
|
};
|
|
|
|
int f(struct A a);
|
|
|
|
int g() {
|
|
struct A a;
|
|
// CHECK: call i32 @f(%struct.A addrspace(5)* byval{{.*}}%a)
|
|
return f(a);
|
|
}
|
|
|
|
// CHECK: declare i32 @f(%struct.A addrspace(5)* byval{{.*}})
|