summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/forward-declare-class.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-03-23 16:30:03 +0000
committerDevang Patel <dpatel@apple.com>2011-03-23 16:30:03 +0000
commit2b54299705d296598d66da6b8539982b69c42f77 (patch)
tree97ae48389455a89c09ede94da27376b68a3ed72c /debuginfo-tests/forward-declare-class.cpp
parent945b8aed2a822c457d6b91a18370581e95ea85c0 (diff)
downloadbcm5719-llvm-2b54299705d296598d66da6b8539982b69c42f77.tar.gz
bcm5719-llvm-2b54299705d296598d66da6b8539982b69c42f77.zip
Test case for r128150.
llvm-svn: 128151
Diffstat (limited to 'debuginfo-tests/forward-declare-class.cpp')
-rw-r--r--debuginfo-tests/forward-declare-class.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/debuginfo-tests/forward-declare-class.cpp b/debuginfo-tests/forward-declare-class.cpp
new file mode 100644
index 00000000000..30f5fd934bf
--- /dev/null
+++ b/debuginfo-tests/forward-declare-class.cpp
@@ -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;
+
OpenPOWER on IntegriCloud