1 // Purpose:
2 //      Check that defining duplicate labels gives a useful error message.
3 //
4 // RUN: %dexter_regression_test_build %s -o %t
5 // RUN: not %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s --match-full-lines
6 //
7 // CHECK: parser error:{{.*}}err_duplicate_label.cpp(12): Found duplicate line label: 'oops'
8 // CHECK-NEXT: {{Dex}}Label('oops')
9 
main()10 int main() {
11     int result = 0; // DexLabel('oops')
12     return result;  // DexLabel('oops')
13 }
14