diff options
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-class.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-class.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-class.cpp b/clang/test/CodeGenCXX/debug-info-class.cpp index 062227a0238..131693b21a5 100644 --- a/clang/test/CodeGenCXX/debug-info-class.cpp +++ b/clang/test/CodeGenCXX/debug-info-class.cpp @@ -8,6 +8,11 @@ void func(bar *f) { // CHECK: DW_TAG_class_type union baz; void func(baz *f) { // CHECK: DW_TAG_union_type } +class B { // CHECK: DW_TAG_class_type +public: + virtual ~B(); +// CHECK: metadata !"_vptr$B", {{.*}}, i32 64, metadata !{{.*}}} ; [ DW_TAG_member ] +}; struct A { // CHECK: DW_TAG_structure_type int one; static const int HdrSize = 52; // CHECK: HdrSize @@ -16,8 +21,8 @@ struct A { // CHECK: DW_TAG_structure_type int x = 1; } }; -class B { // CHECK: DW_TAG_class_type -}; + + int main() { A a; B b; |