| 1 | // REQUIRES: lldb |
| 2 | // UNSUPPORTED: system-windows |
| 3 | // |
| 4 | // RUN: %clang -std=gnu11 -O -glldb %s -o %t |
| 5 | // RUN: %dexter --fail-lt 1.0 -w --binary %t --debugger 'lldb' -- %s |
| 6 | |
| 7 | void __attribute__((noinline, optnone)) bar(int *test) {} |
| 8 | int main() { |
| 9 | int test; |
| 10 | test = 23; |
| 11 | bar(test: &test); // DexLabel('before_bar') |
| 12 | return test; // DexLabel('after_bar') |
| 13 | } |
| 14 | |
| 15 | // DexExpectWatchValue('test', '23', on_line=ref('before_bar')) |
| 16 | // DexExpectWatchValue('test', '23', on_line=ref('after_bar')) |
| 17 | |
| 18 | |