2014-10-19 07:47:59 +08:00
|
|
|
// RUN: %clangxx %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o
|
2011-03-24 00:30:03 +08:00
|
|
|
// RUN: %test_debuginfo %s %t.o
|
|
|
|
// Radar 9168773
|
|
|
|
|
|
|
|
// DEBUGGER: ptype A
|
2012-06-06 02:16:03 +08:00
|
|
|
// Work around a gdb bug where it believes that a class is a
|
|
|
|
// struct if there aren't any methods - even though it's tagged
|
|
|
|
// as a class.
|
2012-07-24 03:41:58 +08:00
|
|
|
// CHECK: type = {{struct|class}} A {
|
|
|
|
// CHECK-NEXT: {{(public:){0,1}}}
|
2011-03-24 00:30:03 +08:00
|
|
|
// CHECK-NEXT: int MyData;
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
class A;
|
|
|
|
class B {
|
|
|
|
public:
|
|
|
|
void foo(const A *p);
|
|
|
|
};
|
|
|
|
|
|
|
|
B iEntry;
|
|
|
|
|
|
|
|
class A {
|
|
|
|
public:
|
|
|
|
int MyData;
|
|
|
|
};
|
|
|
|
|
|
|
|
A irp;
|
|
|
|
|