File tree Expand file tree Collapse file tree 4 files changed +32
-14
lines changed
Expand file tree Collapse file tree 4 files changed +32
-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.
45
5- // The desired behavior in this case is to fail, so other checks are omitted
6+ //RUN: rm -rf %t*
7+ //RUN: 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes1b.c -- -Xclang -verify=ab-expected
68
9+ // ab-expected-no-diagnostics
10+ // ba-expected-error@+1 {{merging failed for 'foo'}}
711_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.
45
5- // The desired behavior in this case is to fail, so other checks are omitted
6+ //RUN: rm -rf %t*
7+ //RUN: 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes1a.c -- -Xclang -verify=ba-expected
68
9+ // ba-expected-no-diagnostics
10+ // ab-expected-error@+1 {{merging failed for 'foo'}}
711int * 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.
5+
16// 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
7+ // RUN: 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes2b.c -- -Xclang -verify=ab-expected
48
59// The desired behavior in this case is to fail, so other checks are omitted
610
711// Test no body vs body
812
13+ // ab-expected-no-diagnostics
14+ // ba-expected-error@+1 {{merging failed for 'foo'}}
915void 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.
45
5- // The desired behavior in this case is to fail, so other checks are omitted
6+ // RUN: rm -rf %t*
7+ // RUN: 3c -base-dir=%S -output-dir=%t.checked %s %S/difftypes2a.c -- -Xclang -verify=ba-expected
68
79// Test body vs no body
810
11+ // ba-expected-no-diagnostics
12+ // ab-expected-error@+1 {{merging failed for 'foo'}}
913void foo (char * * y ) {
1014 // this is the body
1115}
You can’t perform that action at this time.
0 commit comments