// RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
void func;
__kernel void foo {
// CHECK: @foo.i = internal addrspace global i32 undef
__local int i;
func;
}
// CHECK-LABEL: define {{.*}}void @_Z3barPU7CLlocali
__kernel void __attribute__ bar {
*x = 5;
}