1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_Z2f0Pc 4*f4a2713aSLionel Sambuc void f0(char *p) { } 5*f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_Z2f0PU3AS1c 6*f4a2713aSLionel Sambuc void f0(char __attribute__((address_space(1))) *p) { } 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc struct OpaqueType; 9*f4a2713aSLionel Sambuc typedef OpaqueType __attribute__((address_space(100))) * OpaqueTypePtr; 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_Z2f0PU5AS10010OpaqueType 12*f4a2713aSLionel Sambuc void f0(OpaqueTypePtr) { } 13