15 lines · plain
1// RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s2 3void func(local int*);4 5__kernel void foo(void) {6 // CHECK: @foo.i = internal addrspace(3) global i32 undef7 __local int i;8 func(&i);9}10 11// CHECK-LABEL: define {{.*}}void @_Z3barPU7CLlocali12__kernel void __attribute__((__overloadable__)) bar(local int *x) {13 *x = 5;14}15