diff options
author | Devang Patel <dpatel@apple.com> | 2011-06-15 17:57:23 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-06-15 17:57:23 +0000 |
commit | ce04aa5a2c353020079a20238adcf21c0d2dbc5b (patch) | |
tree | e7c17e1270e24b261b81917fceb7507c1646868b /debuginfo-tests | |
parent | 7bf741ac3613654f83f9c37cfb58e970b1854c2a (diff) | |
download | bcm5719-llvm-ce04aa5a2c353020079a20238adcf21c0d2dbc5b.tar.gz bcm5719-llvm-ce04aa5a2c353020079a20238adcf21c0d2dbc5b.zip |
Testcase for r133065
llvm-svn: 133066
Diffstat (limited to 'debuginfo-tests')
-rw-r--r-- | debuginfo-tests/ctor.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debuginfo-tests/ctor.cpp b/debuginfo-tests/ctor.cpp new file mode 100644 index 00000000000..331d4e5756c --- /dev/null +++ b/debuginfo-tests/ctor.cpp @@ -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; +} + |