diff options
Diffstat (limited to 'test/CodeGenOpenCL/local.cl')
-rw-r--r-- | test/CodeGenOpenCL/local.cl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGenOpenCL/local.cl b/test/CodeGenOpenCL/local.cl index 895c8fa2717d..f1031cdfd84e 100644 --- a/test/CodeGenOpenCL/local.cl +++ b/test/CodeGenOpenCL/local.cl @@ -1,9 +1,11 @@ // RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s +void func(local int*); + __kernel void foo(void) { - // CHECK: @foo.i = internal unnamed_addr addrspace(2) + // CHECK: @foo.i = internal addrspace(2) global i32 undef __local int i; - ++i; + func(&i); } // CHECK-LABEL: define void @_Z3barPU7CLlocali |