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