blob: 8d9a15f68018a46aa151c40fb83c90db9332b980 [file] [log] [blame]
Hans Wennborg9125b082014-01-13 19:48:13 +00001// RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=yes -cxx-abi itanium -emit-llvm -o - | FileCheck -check-prefix=ASMANG %s
2// RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -cxx-abi itanium -emit-llvm -o - | FileCheck -check-prefix=NOASMANG %s
David Tweed31d09b02013-09-13 12:04:22 +00003
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))
8void ff(int *arg) { }
9// ASMANG: @_Z2ffPi
10// NOASMANG: @_Z2ffPi
11
12__attribute__((overloadable))
13void f(private int *arg) { }
14// ASMANG: @_Z1fPi
15// NOASMANG: @_Z1fPi
16
17__attribute__((overloadable))
18void f(global int *arg) { }
19// ASMANG: @_Z1fPU3AS1i
20// NOASMANG: @_Z1fPU8CLglobali
21
22__attribute__((overloadable))
23void f(local int *arg) { }
24// ASMANG: @_Z1fPU3AS2i
25// NOASMANG: @_Z1fPU7CLlocali
26
27__attribute__((overloadable))
28void f(constant int *arg) { }
29// ASMANG: @_Z1fPU3AS3i
30// NOASMANG: @_Z1fPU10CLconstanti