blob: 5c0f1df86e56641eca03f7ff2a4a118a1a6f9a07 [file] [log] [blame]
Devang Patel2b542992011-03-23 16:30:03 +00001// 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 Christophercc389be2012-06-05 18:16:03 +00006// 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 Christopher118c1962012-07-23 19:41:58 +00009// CHECK: type = {{struct|class}} A {
10// CHECK-NEXT: {{(public:){0,1}}}
Devang Patel2b542992011-03-23 16:30:03 +000011// CHECK-NEXT: int MyData;
12// CHECK-NEXT: }
13class A;
14class B {
15public:
16 void foo(const A *p);
17};
18
19B iEntry;
20
21class A {
22public:
23 int MyData;
24};
25
26A irp;
27