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