mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Test case for r128150.
llvm-svn: 128151
This commit is contained in:
23
debuginfo-tests/forward-declare-class.cpp
Normal file
23
debuginfo-tests/forward-declare-class.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
// RUN: %clangxx -O0 -g %s -c -o %t.o
|
||||
// RUN: %test_debuginfo %s %t.o
|
||||
// Radar 9168773
|
||||
|
||||
// DEBUGGER: ptype A
|
||||
// CHECK: type = struct A {
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user