[llvm-commits] [debuginfo-tests] r133066 - /debuginfo-tests/trunk/ctor.cpp
Devang Patel
dpatel at apple.com
Wed Jun 15 10:57:24 PDT 2011
Author: dpatel
Date: Wed Jun 15 12:57:23 2011
New Revision: 133066
URL: http://llvm.org/viewvc/llvm-project?rev=133066&view=rev
Log:
Testcase for r133065
Added:
debuginfo-tests/trunk/ctor.cpp
Added: debuginfo-tests/trunk/ctor.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/ctor.cpp?rev=133066&view=auto
==============================================================================
--- debuginfo-tests/trunk/ctor.cpp (added)
+++ debuginfo-tests/trunk/ctor.cpp Wed Jun 15 12:57:23 2011
@@ -0,0 +1,25 @@
+// RUN: %clangxx -O0 -g %s -c -o %t.o
+// RUN: %clangxx %t.o -o %t.out
+// RUN: %test_debuginfo %s %t.out
+
+
+// DEBUGGER: break 14
+// DEBUGGER: r
+// DEBUGGER: p *this
+// CHECK-NEXT-NOT: Cannot access memory at address
+
+class A {
+public:
+ A() : zero(0), data(42)
+ {
+ }
+private:
+ int zero;
+ int data;
+};
+
+int main() {
+ A a;
+ return 0;
+}
+
More information about the llvm-commits
mailing list