diff options
author | Zachary Turner <zturner@google.com> | 2017-11-21 01:20:28 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-11-21 01:20:28 +0000 |
commit | 178efe7379d37161b54dbe37628bd5ddd4f1758d (patch) | |
tree | 83934b838f930014c9b0404e6395437778d2e0b8 /debuginfo-tests/ctor.cpp | |
parent | 995abdefff66191a270b8dda6251df2574256bbf (diff) |
Re-revert "Refactor debuginfo-tests."
This is still breaking greendragon.
At this point I give up until someone can fix the greendragon
bots, and I will probably abandon this effort in favor of using
a private github repository.
Diffstat (limited to 'debuginfo-tests/ctor.cpp')
-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..92cdbcd7e0b --- /dev/null +++ b/debuginfo-tests/ctor.cpp @@ -0,0 +1,25 @@ +// RUN: %clangxx %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o +// RUN: %clangxx %target_itanium_abi_host_triple %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; +} + |