| 1 |
// Purpose: |
| 2 |
// Check that \DexUnreachable doesn't trigger on the line it's specified |
| 3 |
// on, if it has a specifier indicating which lines should be unreachable. |
| 4 |
// |
| 5 |
// UNSUPPORTED: system-darwin |
| 6 |
// |
| 7 |
// RUN: %dexter_regression_test_cxx_build %s -o %t |
| 8 |
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s |
| 9 |
// CHECK: unreachable_not_cmd_lineno.cpp: |
| 10 |
|
| 11 |
int main(int argc, char **argv) |
| 12 |
{ |
| 13 |
if (argc != 1) |
| 14 |
return 1; // DexLabel('this_one') |
| 15 |
else |
| 16 |
return 0; // DexUnreachable(on_line=ref('this_one')) DexUnreachable(from_line=ref('this_one'), to_line=ref('this_one')) |
| 17 |
} |
| 18 |
|