blob: 4a4a1f3f56e9bdaa60feaf83125376af63fd5f78 [file] [log] [blame]
Douglas Gregor1726d152010-06-14 23:15:08 +00001// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2
Stephen Lin43622612013-08-15 06:47:53 +00003// CHECK-LABEL: define void @_Z2f0Pc
Douglas Gregor1726d152010-06-14 23:15:08 +00004void f0(char *p) { }
Stephen Lin43622612013-08-15 06:47:53 +00005// CHECK-LABEL: define void @_Z2f0PU3AS1c
Douglas Gregor1726d152010-06-14 23:15:08 +00006void f0(char __attribute__((address_space(1))) *p) { }
Douglas Gregorfb9968d2011-12-03 18:24:43 +00007
8struct OpaqueType;
9typedef OpaqueType __attribute__((address_space(100))) * OpaqueTypePtr;
10
Stephen Lin43622612013-08-15 06:47:53 +000011// CHECK-LABEL: define void @_Z2f0PU5AS10010OpaqueType
Douglas Gregorfb9968d2011-12-03 18:24:43 +000012void f0(OpaqueTypePtr) { }