@@ -7,7 +7,7 @@ auto not_skipped() {
77 int x;
88 if (x = 10 ) {}
99 // Check that this function is not skipped.
10- // CHECK: 8:9: warning: using the result of an assignment as a condition without parentheses
10+ // CHECK: 8:9: warning: using the result of an assignment as a truth value without parentheses
1111 return 1 ;
1212}
1313
@@ -16,7 +16,7 @@ auto lambda_not_skipped = []() {
1616 int x;
1717 if (x = 10 ) {}
1818 // Check that this function is not skipped.
19- // CHECK: 17:9: warning: using the result of an assignment as a condition without parentheses
19+ // CHECK: 17:9: warning: using the result of an assignment as a truth value without parentheses
2020 return 1 ;
2121}
2222
@@ -25,15 +25,15 @@ auto skipped() -> T {
2525 int x;
2626 if (x = 10 ) {}
2727 // Check that this function is skipped.
28- // CHECK-NOT: 26:9: warning: using the result of an assignment as a condition without parentheses
28+ // CHECK-NOT: 26:9: warning: using the result of an assignment as a truth value without parentheses
2929 return 1 ;
3030};
3131
3232auto lambda_skipped = []() -> int {
3333 int x;
3434 if (x = 10 ) {}
3535 // This could potentially be skipped, but it isn't at the moment.
36- // CHECK: 34:9: warning: using the result of an assignment as a condition without parentheses
36+ // CHECK: 34:9: warning: using the result of an assignment as a truth value without parentheses
3737 return 1 ;
3838};
3939
@@ -42,7 +42,7 @@ decltype(auto)** not_skipped_ptr() {
4242 int x;
4343 if (x = 10 ) {}
4444 // Check that this function is not skipped.
45- // CHECK: 43:9: warning: using the result of an assignment as a condition without parentheses
45+ // CHECK: 43:9: warning: using the result of an assignment as a truth value without parentheses
4646 return T ();
4747}
4848
@@ -51,7 +51,7 @@ decltype(auto) not_skipped_decltypeauto() {
5151 int x;
5252 if (x = 10 ) {}
5353 // Check that this function is not skipped.
54- // CHECK: 52:9: warning: using the result of an assignment as a condition without parentheses
54+ // CHECK: 52:9: warning: using the result of an assignment as a truth value without parentheses
5555 return 1 ;
5656}
5757
0 commit comments