| 1 | // RUN: %clangxx %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o |
| 2 | // RUN: %test_debuginfo %s %t.o |
| 3 | // Radar 9168773 |
| 4 | // XFAIL: !system-darwin && gdb-clang-incompatibility |
| 5 | |
| 6 | // DEBUGGER: ptype A |
| 7 | // Work around a gdb bug where it believes that a class is a |
| 8 | // struct if there aren't any methods - even though it's tagged |
| 9 | // as a class. |
| 10 | // CHECK: {{struct|class}} A { |
| 11 | // CHECK: 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 | |
| 28 | |