1 // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -std=c++11 -g %s -o - | FileCheck %s 2 // CHECK: metadata !"_ZTS1A"} ; [ DW_TAG_class_type ] [A] 3 // CHECK: metadata !"_ZN1A3fooEiS_3$_0", {{.*}} [protected] 4 // CHECK: ![[THISTYPE:[0-9]+]] = {{.*}} ; [ DW_TAG_pointer_type ] {{.*}} [artificial] [from _ZTS1A] 5 // CHECK: DW_TAG_ptr_to_member_type 6 // CHECK: {{.*}}metadata ![[MEMFUNTYPE:[0-9]+]], metadata !{{.*}}} ; [ DW_TAG_ptr_to_member_type ] {{.*}} [from ] 7 // CHECK: ![[MEMFUNTYPE]] = {{.*}}metadata ![[MEMFUNARGS:[0-9]+]], i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] {{.*}} [from ] 8 // CHECK: ![[MEMFUNARGS]] = {{.*}}, metadata ![[THISTYPE]], 9 // CHECK: ""{{.*}}DW_TAG_arg_variable 10 // CHECK: ""{{.*}}DW_TAG_arg_variable 11 // CHECK: ""{{.*}}DW_TAG_arg_variable 12 union { 13 int a; 14 float b; 15 } u; 16 17 class A { 18 protected: 19 void foo(int, A, decltype(u)); 20 }; 21 22 void A::foo(int, A, decltype(u)) { 23 } 24 25 A a; 26 27 int A::*x = 0; 28 int (A::*y)(int) = 0; 29