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. |
Eric Christopher | 118c196 | 2012-07-23 19:41:58 +0000 | [diff] [blame^] | 9 | // CHECK: type = {{struct|class}} A { |
| 10 | // CHECK-NEXT: {{(public:){0,1}}} |
Devang Patel | 2b54299 | 2011-03-23 16:30:03 +0000 | [diff] [blame] | 11 | // CHECK-NEXT: int MyData; |
| 12 | // CHECK-NEXT: } |
| 13 | class A; |
| 14 | class B { |
| 15 | public: |
| 16 | void foo(const A *p); |
| 17 | }; |
| 18 | |
| 19 | B iEntry; |
| 20 | |
| 21 | class A { |
| 22 | public: |
| 23 | int MyData; |
| 24 | }; |
| 25 | |
| 26 | A irp; |
| 27 | |