etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / CodeGenOpenCL / local.cl
blobf1031cdfd84e493e56fb361e3f9d4b91a9140a57
1 // RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
3 void func(local int*);
5 __kernel void foo(void) {
6 // CHECK: @foo.i = internal addrspace(2) global i32 undef
7 __local int i;
8 func(&i);
11 // CHECK-LABEL: define void @_Z3barPU7CLlocali
12 __kernel void __attribute__((__overloadable__)) bar(local int *x) {
13 *x = 5;