summaryrefslogtreecommitdiff
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-06-05 18:16:03 +0000
committerEric Christopher <echristo@apple.com>2012-06-05 18:16:03 +0000
commitcc389be552298a0dc696ccb86a5b35aef91a84da (patch)
treee6e044c6bf85c8b4023847297324e0ee206c554c /debuginfo-tests
parenta6fb910fad700636a2aa5770b6ed7cf18a79c55c (diff)
downloadllvm-cc389be552298a0dc696ccb86a5b35aef91a84da.tar.gz
Fix this for buggy gdb behavior alongside the change
to clang that omits debug information for non-user-defined methods. llvm-svn: 158008
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/forward-declare-class.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/debuginfo-tests/forward-declare-class.cpp b/debuginfo-tests/forward-declare-class.cpp
index c133d2c5871e..56bca42d3264 100644
--- a/debuginfo-tests/forward-declare-class.cpp
+++ b/debuginfo-tests/forward-declare-class.cpp
@@ -3,8 +3,10 @@
// Radar 9168773
// DEBUGGER: ptype A
-// CHECK: type = class A {
-// CHECK-NEXT: public:
+// 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 A {
// CHECK-NEXT: int MyData;
// CHECK-NEXT: }
class A;