Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenOpenCL / local.cl
blob6f44b684e94bdda713bb1f147b2c004f549bc069
1 // RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
3 void func(local int*);
5 __kernel void foo(void) {
6 // CHECK: @foo.i = internal addrspace(3) global i32 undef
7 __local int i;
8 func(&i);
11 // CHECK-LABEL: define {{.*}}void @_Z3barPU7CLlocali
12 __kernel void __attribute__((__overloadable__)) bar(local int *x) {
13 *x = 5;