| // UNSUPPORTED: system-windows |
| // RUN: %dexter --fail-lt 1.0 -w --debugger lldb \ |
| // RUN: --builder clang-c --cflags "-O2 -glldb" -- %s |
| //// Check that we give good locations to a variable ('local') which is escaped |
| //// down some control paths and not others. This example is handled well currently. |
| __attribute__((__noinline__)) |
| __attribute__((__noinline__)) |
| int local = 0; // DexLabel('s1') |
| return local; // DexLabel('s2') |
| // DexExpectWatchValue('local', '0', '0', on_line=ref('s1')) |
| // DexExpectWatchValue('local', '2', '1', on_line=ref('s2')) |