1 // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
2 
3 template<class X> class B {
4 public:
5   explicit B(X* p = 0);
6 };
7 
8 class A
9 {
10 public:
A(int value)11   A(int value) : m_a_value(value) {};
A(int value,A * client_A)12   A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {}
13 
~A()14   virtual ~A() {}
15 
16 private:
17   int m_a_value;
18   B<A> m_client_A;
19 };
20 
main(int argc,char ** argv)21 int main(int argc, char **argv) {
22   A reallyA (500);
23 }
24 
25 // CHECK: ![[CLASSTYPE:.*]] = !MDCompositeType(tag: DW_TAG_class_type, name: "A",
26 // CHECK-SAME:                                 identifier: "_ZTS1A"
27 // CHECK: ![[ARTARG:.*]] = !MDDerivedType(tag: DW_TAG_pointer_type, baseType: !"_ZTS1A",
28 // CHECK-SAME:                            DIFlagArtificial
29 // CHECK: !MDSubprogram(name: "A", scope: !"_ZTS1A"
30 // CHECK-SAME:          line: 12
31 // CHECK-SAME:          DIFlagPublic
32 // CHECK: !MDSubroutineType(types: [[FUNCTYPE:![0-9]*]])
33 // CHECK: [[FUNCTYPE]] = !{null, ![[ARTARG]], !{{.*}}, !{{.*}}}
34