mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 01:18:53 +00:00
118c1961ae
Patch by Andy Gibbs. llvm-svn: 160639
28 lines
475 B
C++
28 lines
475 B
C++
// RUN: %clangxx -O0 -g %s -c -o %t.o
|
|
// RUN: %test_debuginfo %s %t.o
|
|
// Radar 9168773
|
|
|
|
// DEBUGGER: ptype A
|
|
// 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.
|
|
// CHECK: type = {{struct|class}} A {
|
|
// CHECK-NEXT: {{(public:){0,1}}}
|
|
// 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;
|
|
|