1 // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -std=c++11 -g %s -o - | FileCheck %s
2 // CHECK: !MDCompositeType(tag: DW_TAG_class_type, name: "A",{{.*}} identifier: "_ZTS1A")
3 // CHECK: !MDSubprogram(name: "foo", linkageName: "_ZN1A3fooEiS_3$_0"
4 // CHECK-SAME:          DIFlagProtected
5 // CHECK: ![[THISTYPE:[0-9]+]] = !MDDerivedType(tag: DW_TAG_pointer_type, baseType: !"_ZTS1A"
6 // CHECK-SAME:                                  DIFlagArtificial
7 // CHECK: !MDDerivedType(tag: DW_TAG_ptr_to_member_type
8 // CHECK: !MDDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: ![[MEMFUNTYPE:[0-9]+]]
9 // CHECK: ![[MEMFUNTYPE]] = !MDSubroutineType(types: ![[MEMFUNARGS:[0-9]+]])
10 // CHECK: ![[MEMFUNARGS]] = {{.*}}, ![[THISTYPE]],
11 // CHECK: !MDLocalVariable(tag: DW_TAG_arg_variable
12 // CHECK: !MDLocalVariable(tag: DW_TAG_arg_variable
13 // CHECK: !MDLocalVariable(tag: DW_TAG_arg_variable
14 union {
15   int a;
16   float b;
17 } u;
18 
19 class A {
20 protected:
21   void foo(int, A, decltype(u));
22 };
23 
foo(int,A,decltype(u) )24 void A::foo(int, A, decltype(u)) {
25 }
26 
27 A a;
28 
29 int A::*x = 0;
30 int (A::*y)(int) = 0;
31