Devang Patel | ce04aa5 | 2011-06-15 17:57:23 | [diff] [blame] | 1 | // RUN: %clangxx -O0 -g %s -c -o %t.o |
2 | // RUN: %clangxx %t.o -o %t.out | ||||
3 | // RUN: %test_debuginfo %s %t.out | ||||
4 | |||||
5 | |||||
6 | // DEBUGGER: break 14 | ||||
7 | // DEBUGGER: r | ||||
8 | // DEBUGGER: p *this | ||||
9 | // CHECK-NEXT-NOT: Cannot access memory at address | ||||
10 | |||||
11 | class A { | ||||
12 | public: | ||||
13 | A() : zero(0), data(42) | ||||
14 | { | ||||
15 | } | ||||
16 | private: | ||||
17 | int zero; | ||||
18 | int data; | ||||
19 | }; | ||||
20 | |||||
21 | int main() { | ||||
22 | A a; | ||||
23 | return 0; | ||||
24 | } | ||||
25 |