blob: a0cf131f83e15c9750165274cd7da9b4387112ec [file] [log] [blame]
Douglas Katzman3459ce22015-10-08 04:24:12 +00001// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s
Eric Christopher39e39c82012-02-09 07:26:21 +00002
3template<class X> class B {
4public:
5 explicit B(X* p = 0);
6};
7
8class A
9{
10public:
11 A(int value) : m_a_value(value) {};
12 A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {}
13
14 virtual ~A() {}
15
16private:
17 int m_a_value;
18 B<A> m_client_A;
19};
20
21int main(int argc, char **argv) {
22 A reallyA (500);
23}
24
Duncan P. N. Exon Smithf9521b02016-04-17 07:45:08 +000025// CHECK: ![[CLASSTYPE:.*]] = distinct !DICompositeType(tag: DW_TAG_class_type, name: "A",
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000026// CHECK-SAME: identifier: "_ZTS1A"
Duncan P. N. Exon Smith383f8412016-04-23 21:08:27 +000027// CHECK: ![[ARTARG:.*]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: ![[CLASSTYPE]],{{.*}} DIFlagArtificial
28// CHECK: !DISubprogram(name: "A", scope: ![[CLASSTYPE]]
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000029// CHECK-SAME: line: 12
30// CHECK-SAME: DIFlagPublic
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000031// CHECK: !DISubroutineType(types: [[FUNCTYPE:![0-9]*]])
Duncan P. N. Exon Smithb3a66692014-12-15 19:10:08 +000032// CHECK: [[FUNCTYPE]] = !{null, ![[ARTARG]], !{{.*}}, !{{.*}}}