mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-22 23:39:24 +00:00
2665f3e436
These tests almost certainly work on Darwin anyway, I just wanted to keep things in a fixed, working configuration, while pushing Dexter up. I've left Windows unsupported as the dexter command line will need further adjustment to run dbgeng. This can be abstracted through the %dexter substitution, but is a task for another time.
37 lines
477 B
C++
37 lines
477 B
C++
// REQUIRES: lldb
|
|
// UNSUPPORTED: system-windows
|
|
//
|
|
// RUN: %dexter --fail-lt 1.0 -w \
|
|
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -glldb" -- %s
|
|
|
|
class A {
|
|
public:
|
|
A() : zero(0), data(42) { // DexLabel('ctor_start')
|
|
}
|
|
private:
|
|
int zero;
|
|
int data;
|
|
};
|
|
|
|
int main() {
|
|
A a;
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
DexExpectProgramState({
|
|
'frames': [
|
|
{
|
|
'location': {
|
|
'lineno': 'ctor_start'
|
|
},
|
|
'watches': {
|
|
'*this': {'is_irretrievable': False}
|
|
}
|
|
}
|
|
]
|
|
})
|
|
*/
|
|
|