mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-29 16:41:27 +00:00
ce04aa5a2c
llvm-svn: 133066
26 lines
335 B
C++
26 lines
335 B
C++
// 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;
|
|
}
|
|
|