mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
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.
18 lines
460 B
C
18 lines
460 B
C
// REQUIRES: lldb
|
|
// UNSUPPORTED: system-windows
|
|
//
|
|
// 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')
|
|
|