Testcase for r133065

llvm-svn: 133066
This commit is contained in:
Devang Patel 2011-06-15 17:57:23 +00:00
parent 7bf741ac36
commit ce04aa5a2c
1 changed files with 25 additions and 0 deletions

25
debuginfo-tests/ctor.cpp Normal file
View File

@ -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;
}