File tree Expand file tree Collapse file tree 4 files changed +40
-14
lines changed
Expand file tree Collapse file tree 4 files changed +40
-14
lines changed Original file line number Diff line number Diff line change 1- //RUN: rm -rf %t*
2- //RUN: not 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes1b.c -- 2>%t.stderr
3- //RUN: grep -q "merging failed" %t.stderr
1+ // Since the RUN commands in difftypes1a.c and difftypes1b.c process the two
2+ // files in different orders and the location where the error is reported
3+ // depends on the order, we need to use a different diagnostic verification
4+ // prefix (and set of corresponding comments) for each RUN command. Verification
5+ // is per translation unit, so the translation unit with no diagnostic needs
6+ // `expected-no-diagnostics`.
47
5- // The desired behavior in this case is to fail, so other checks are omitted
8+ //RUN: rm -rf %t*
9+ //RUN: 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes1b.c -- -Xclang -verify=ab-expected
610
11+ // ab-expected-no-diagnostics
12+ // ba-expected-error@+1 {{merging failed for 'foo'}}
713_Ptr < int > foo (int , char ) ;
Original file line number Diff line number Diff line change 1- //RUN: rm -rf %t*
2- //RUN: not 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes1a.c -- 2>%t.stderr
3- //RUN: grep -q "merging failed" %t.stderr
1+ // Since the RUN commands in difftypes1a.c and difftypes1b.c process the two
2+ // files in different orders and the location where the error is reported
3+ // depends on the order, we need to use a different diagnostic verification
4+ // prefix (and set of corresponding comments) for each RUN command. Verification
5+ // is per translation unit, so the translation unit with no diagnostic needs
6+ // `expected-no-diagnostics`.
47
5- // The desired behavior in this case is to fail, so other checks are omitted
8+ //RUN: rm -rf %t*
9+ //RUN: 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes1a.c -- -Xclang -verify=ba-expected
610
11+ // ba-expected-no-diagnostics
12+ // ab-expected-error@+1 {{merging failed for 'foo'}}
713int * foo (int , char * );
Original file line number Diff line number Diff line change 1+ // Since the RUN commands in difftypes2a.c and difftypes2b.c process the two
2+ // files in different orders and the location where the error is reported
3+ // depends on the order, we need to use a different diagnostic verification
4+ // prefix (and set of corresponding comments) for each RUN command. Verification
5+ // is per translation unit, so the translation unit with no diagnostic needs
6+ // `expected-no-diagnostics`.
7+
18// RUN: rm -rf %t*
2- // RUN: not 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes2b.c -- 2>%t.stderr
3- // RUN: grep -q "merging failed" %t.stderr
9+ // RUN: 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes2b.c -- -Xclang -verify=ab-expected
410
511// The desired behavior in this case is to fail, so other checks are omitted
612
713// Test no body vs body
814
15+ // ab-expected-no-diagnostics
16+ // ba-expected-error@+1 {{merging failed for 'foo'}}
917void foo (char * x );
Original file line number Diff line number Diff line change 1- // RUN: rm -rf %t*
2- // RUN: not 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes2a.c -- 2>%t.stderr
3- // RUN: grep -q "merging failed" %t.stderr
1+ // Since the RUN commands in difftypes2a.c and difftypes2b.c process the two
2+ // files in different orders and the location where the error is reported
3+ // depends on the order, we need to use a different diagnostic verification
4+ // prefix (and set of corresponding comments) for each RUN command. Verification
5+ // is per translation unit, so the translation unit with no diagnostic needs
6+ // `expected-no-diagnostics`.
47
5- // The desired behavior in this case is to fail, so other checks are omitted
8+ // RUN: rm -rf %t*
9+ // RUN: 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes2a.c -- -Xclang -verify=ba-expected
610
711// Test body vs no body
812
13+ // ba-expected-no-diagnostics
14+ // ab-expected-error@+1 {{merging failed for 'foo'}}
915void foo (char * * y ) {
1016 // this is the body
1117}
You can’t perform that action at this time.
0 commit comments