[llvm-commits] [debuginfo-tests] r158008 - /debuginfo-tests/trunk/forward-declare-class.cpp
Eric Christopher
echristo at apple.com
Tue Jun 5 11:16:04 PDT 2012
Author: echristo
Date: Tue Jun 5 13:16:03 2012
New Revision: 158008
URL: http://llvm.org/viewvc/llvm-project?rev=158008&view=rev
Log:
Fix this for buggy gdb behavior alongside the change
to clang that omits debug information for non-user-defined
methods.
Modified:
debuginfo-tests/trunk/forward-declare-class.cpp
Modified: debuginfo-tests/trunk/forward-declare-class.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/forward-declare-class.cpp?rev=158008&r1=158007&r2=158008&view=diff
==============================================================================
--- debuginfo-tests/trunk/forward-declare-class.cpp (original)
+++ debuginfo-tests/trunk/forward-declare-class.cpp Tue Jun 5 13:16:03 2012
@@ -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;
More information about the llvm-commits
mailing list