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