2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
|
2011-09-20 05:14:35 +08:00
|
|
|
|
|
|
|
__kernel void foo(void) {
|
|
|
|
// CHECK: @foo.i = internal addrspace(2)
|
|
|
|
__local int i;
|
|
|
|
++i;
|
|
|
|
}
|
2013-02-08 09:07:32 +08:00
|
|
|
|
2013-09-13 20:04:22 +08:00
|
|
|
// CHECK-LABEL: define void @_Z3barPU7CLlocali
|
2013-02-08 09:07:32 +08:00
|
|
|
__kernel void __attribute__((__overloadable__)) bar(local int *x) {
|
|
|
|
*x = 5;
|
|
|
|
}
|