Filipe Cabecinhas | 090a237 | 2014-10-18 23:47:59 +0000 | [diff] [blame] | 1 | // 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 Turner | 79708b5 | 2017-11-21 01:20:28 +0000 | [diff] [blame^] | 3 | // RUN: %test_debuginfo %s %t.out |
Devang Patel | ce04aa5 | 2011-06-15 17:57:23 +0000 | [diff] [blame] | 4 | |
| 5 | |
| 6 | // DEBUGGER: break 14 |
| 7 | // DEBUGGER: r |
| 8 | // DEBUGGER: p *this |
Zachary Turner | 79708b5 | 2017-11-21 01:20:28 +0000 | [diff] [blame^] | 9 | // CHECK-NEXT-NOT: Cannot access memory at address |
Devang Patel | ce04aa5 | 2011-06-15 17:57:23 +0000 | [diff] [blame] | 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 | |