etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / CodeGenOpenCL / address-spaces-mangling.cl
blobedb53fc35821e93040fe06bc5cfaca5f3bc06156
1 // RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=yes -triple %itanium_abi_triple -emit-llvm -o - | FileCheck -check-prefix=ASMANG %s
2 // RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck -check-prefix=NOASMANG %s
4 // We can't name this f as private is equivalent to default
5 // no specifier given address space so we get multiple definition
6 // warnings, but we do want it for comparison purposes.
7 __attribute__((overloadable))
8 void ff(int *arg) { }
9 // ASMANG: @_Z2ffPi
10 // NOASMANG: @_Z2ffPi
12 __attribute__((overloadable))
13 void f(private int *arg) { }
14 // ASMANG: @_Z1fPi
15 // NOASMANG: @_Z1fPi
17 __attribute__((overloadable))
18 void f(global int *arg) { }
19 // ASMANG: @_Z1fPU3AS1i
20 // NOASMANG: @_Z1fPU8CLglobali
22 __attribute__((overloadable))
23 void f(local int *arg) { }
24 // ASMANG: @_Z1fPU3AS2i
25 // NOASMANG: @_Z1fPU7CLlocali
27 __attribute__((overloadable))
28 void f(constant int *arg) { }
29 // ASMANG: @_Z1fPU3AS3i
30 // NOASMANG: @_Z1fPU10CLconstanti