blob: 92cdbcd7e0b1cfe91b1d617c843e59cd6eab7135 [file] [log] [blame]
Filipe Cabecinhas090a2372014-10-18 23:47:59 +00001// RUN: %clangxx %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o
2// RUN: %clangxx %target_itanium_abi_host_triple %t.o -o %t.out
Zachary Turner79708b52017-11-21 01:20:28 +00003// RUN: %test_debuginfo %s %t.out
Devang Patelce04aa52011-06-15 17:57:23 +00004
5
6// DEBUGGER: break 14
7// DEBUGGER: r
8// DEBUGGER: p *this
Zachary Turner79708b52017-11-21 01:20:28 +00009// CHECK-NEXT-NOT: Cannot access memory at address
Devang Patelce04aa52011-06-15 17:57:23 +000010
11class A {
12public:
13 A() : zero(0), data(42)
14 {
15 }
16private:
17 int zero;
18 int data;
19};
20
21int main() {
22 A a;
23 return 0;
24}
25