[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenOpenCL / byval.cl
blobbd994ddca4e3cd3e959c4ef14ac14858ae09a103
1 // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -o - -triple amdgcn %s | FileCheck %s
3 struct A {
4 int x[100];
5 };
7 int f(struct A a);
9 int g() {
10 struct A a;
11 // CHECK: call i32 @f(%struct.A addrspace(5)* noundef byval{{.*}}%a)
12 return f(a);
15 // CHECK: declare i32 @f(%struct.A addrspace(5)* noundef byval{{.*}})