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