| 1 | // RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s |
|---|---|
| 2 | |
| 3 | void func(local int*); |
| 4 | |
| 5 | __kernel void foo(void) { |
| 6 | // CHECK: @foo.i = internal addrspace(3) 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 |