зеркало из https://github.com/microsoft/clang-1.git
31 строка
1.2 KiB
C++
31 строка
1.2 KiB
C++
// 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);
|
|
}
|
|
|
|
// FIXME: The numbers are truly awful.
|
|
// CHECK: !16 = metadata !{i32 {{.*}}, i32 0, metadata !"", i32 0, i32 0, i64 64, i64 64, i64 0, i32 64, metadata !17} ; [ DW_TAG_pointer_type ]
|
|
// CHECK: !17 = metadata !{i32 {{.*}}, null, metadata !"A", metadata !6, i32 8, i64 128, i64 64, i32 0, i32 0, null, metadata !18, i32 0, metadata !17, null} ; [ DW_TAG_class_type ]
|
|
// CHECK: metadata !17, metadata !"A", metadata !"A", metadata !"", metadata !6, i32 12, metadata !43, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 false, null, null, i32 0, metadata !45, i32 12} ; [ DW_TAG_subprogram ]
|
|
// CHECK: metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !44, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
|
|
// CHECK: !44 = metadata !{null, metadata !16, metadata !9, metadata !32}
|