[debuginfo-tests] r203324 - Work around a bug in LLDB (it finds the wrong "C", rdar://problem/14933867)
Adrian Prantl
aprantl at apple.com
Fri Mar 7 17:03:55 PST 2014
Author: adrian
Date: Fri Mar 7 19:03:55 2014
New Revision: 203324
URL: http://llvm.org/viewvc/llvm-project?rev=203324&view=rev
Log:
Work around a bug in LLDB (it finds the wrong "C", rdar://problem/14933867)
and enable this test on Darwin.
Modified:
debuginfo-tests/trunk/static-member.cpp
Modified: debuginfo-tests/trunk/static-member.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/static-member.cpp?rev=203324&r1=203323&r2=203324&view=diff
==============================================================================
--- debuginfo-tests/trunk/static-member.cpp (original)
+++ debuginfo-tests/trunk/static-member.cpp Fri Mar 7 19:03:55 2014
@@ -1,26 +1,25 @@
// RUN: %clangxx -O0 -g %s -o %t -c
// RUN: %clangxx %t -o %t.out
// RUN: %test_debuginfo %s %t.out
-// XFAIL: darwin
// DEBUGGER: delete breakpoints
// DEBUGGER: break static-member.cpp:33
// DEBUGGER: r
-// DEBUGGER: ptype C
-// CHECK: {{struct|class}} C {
+// DEBUGGER: ptype MyClass
+// CHECK: {{struct|class}} MyClass {
// CHECK: static const int a;
// CHECK-NEXT: static int b;
// CHECK-NEXT: static int c;
// CHECK-NEXT: int d;
// CHECK-NEXT: }
-// DEBUGGER: p C::a
-// CHECK: $1 = 4
-// DEBUGGER: p C::c
-// CHECK: $2 = 15
+// DEBUGGER: p MyClass::a
+// CHECK: ${{[0-9]}} = 4
+// DEBUGGER: p MyClass::c
+// CHECK: ${{[0-9]}} = 15
// PR14471, PR14734
-class C {
+class MyClass {
public:
const static int a = 4;
static int b;
@@ -28,10 +27,10 @@ public:
int d;
};
-int C::c = 15;
-const int C::a;
+int MyClass::c = 15;
+const int MyClass::a;
int main() {
- C instance_C;
- return C::a;
+ MyClass instance_MyClass;
+ return MyClass::a;
}
More information about the llvm-commits
mailing list