2019-11-01 21:09:37 +08:00
|
|
|
// REQUIRES: lldb
|
|
|
|
// UNSUPPORTED: system-windows
|
2019-11-01 00:51:53 +08:00
|
|
|
//
|
|
|
|
// RUN: %dexter --fail-lt 1.0 -w \
|
|
|
|
// RUN: --builder clang-c --debugger 'lldb' --cflags "-O -glldb" -- %s
|
|
|
|
|
|
|
|
void __attribute__((noinline, optnone)) bar(int *test) {}
|
|
|
|
int main() {
|
|
|
|
int test;
|
|
|
|
test = 23;
|
|
|
|
bar(&test); // DexLabel('before_bar')
|
|
|
|
return test; // DexLabel('after_bar')
|
|
|
|
}
|
|
|
|
|
|
|
|
// DexExpectWatchValue('test', '23', on_line='before_bar')
|
|
|
|
// DexExpectWatchValue('test', '23', on_line='after_bar')
|
|
|
|
|