Devang Patel | 2b54299 | 2011-03-23 16:30:03 +0000 | [diff] [blame] | 1 | // RUN: %clangxx -O0 -g %s -c -o %t.o |
| 2 | // RUN: %test_debuginfo %s %t.o |
| 3 | // Radar 9168773 |
| 4 | |
| 5 | // DEBUGGER: ptype A |
Eric Christopher | cc389be | 2012-06-05 18:16:03 +0000 | [diff] [blame] | 6 | // Work around a gdb bug where it believes that a class is a |
| 7 | // struct if there aren't any methods - even though it's tagged |
| 8 | // as a class. |
| 9 | // CHECK: type = struct A { |
Devang Patel | 2b54299 | 2011-03-23 16:30:03 +0000 | [diff] [blame] | 10 | // CHECK-NEXT: int MyData; |
| 11 | // CHECK-NEXT: } |
| 12 | class A; |
| 13 | class B { |
| 14 | public: |
| 15 | void foo(const A *p); |
| 16 | }; |
| 17 | |
| 18 | B iEntry; |
| 19 | |
| 20 | class A { |
| 21 | public: |
| 22 | int MyData; |
| 23 | }; |
| 24 | |
| 25 | A irp; |
| 26 | |