2012-02-09 15:26:21 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
template<class X> class B {
|
|
|
|
public:
|
|
|
|
explicit B(X* p = 0);
|
|
|
|
};
|
|
|
|
|
|
|
|
class A
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
A(int value) : m_a_value(value) {};
|
|
|
|
A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {}
|
|
|
|
|
|
|
|
virtual ~A() {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
int m_a_value;
|
|
|
|
B<A> m_client_A;
|
|
|
|
};
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
A reallyA (500);
|
|
|
|
}
|
|
|
|
|
2013-10-11 02:40:16 +08:00
|
|
|
// CHECK: ![[CLASSTYPE:.*]] = {{.*}}, metadata !"_ZTS1A"} ; [ DW_TAG_class_type ] [A]
|
2013-10-05 09:43:22 +08:00
|
|
|
// CHECK: ![[ARTARG:.*]] = {{.*}} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1A]
|
2013-10-11 02:40:16 +08:00
|
|
|
// CHECK: metadata !"_ZTS1A", {{.*}} ; [ DW_TAG_subprogram ] [line 12] [A]
|
2013-08-27 07:19:37 +08:00
|
|
|
// CHECK: metadata [[FUNCTYPE:![0-9]*]], i32 0, null, null, null} ; [ DW_TAG_subroutine_type ]
|
2013-03-20 07:10:14 +08:00
|
|
|
// CHECK: [[FUNCTYPE]] = metadata !{null, metadata ![[ARTARG]], metadata !{{.*}}, metadata !{{.*}}}
|