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