blob: a0b3c1aff2245a8fc096cbf3e57f239cc63afd4a [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s
Douglas Gregor56079f72010-06-14 23:15:08 +00002
Stephen Lin93ab6bf2013-08-15 06:47:53 +00003// CHECK-LABEL: define void @_Z2f0Pc
Douglas Gregor56079f72010-06-14 23:15:08 +00004void f0(char *p) { }
Stephen Lin93ab6bf2013-08-15 06:47:53 +00005// CHECK-LABEL: define void @_Z2f0PU3AS1c
Douglas Gregor56079f72010-06-14 23:15:08 +00006void f0(char __attribute__((address_space(1))) *p) { }
Douglas Gregor14795c82011-12-03 18:24:43 +00007
8struct OpaqueType;
9typedef OpaqueType __attribute__((address_space(100))) * OpaqueTypePtr;
10
Stephen Lin93ab6bf2013-08-15 06:47:53 +000011// CHECK-LABEL: define void @_Z2f0PU5AS10010OpaqueType
Douglas Gregor14795c82011-12-03 18:24:43 +000012void f0(OpaqueTypePtr) { }