File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,13 @@ void test_ptrdiff_t_types(void) {
231
231
scanf ("%td" , & p2 ); // No warning.
232
232
233
233
double d2 = 0. ;
234
- scanf ("%td" , & d2 ); // expected-warning{{format specifies type 'ptrdiff_t *' (aka 'long * ') but the argument has type 'double *'}}
234
+ scanf ("%td" , & d2 ); // expected-warning-re {{format specifies type 'ptrdiff_t *' (aka '{{.+}} ') but the argument has type 'double *'}}
235
235
236
236
ptrdiff_t p3 = 0 ;
237
237
scanf ("%tn" , & p3 ); // No warning.
238
238
239
239
double d3 = 0. ;
240
- scanf ("%tn" , & d3 ); // expected-warning{{format specifies type 'ptrdiff_t *' (aka 'long * ') but the argument has type 'double *'}}
240
+ scanf ("%tn" , & d3 ); // expected-warning-re {{format specifies type 'ptrdiff_t *' (aka '{{.+}} ') but the argument has type 'double *'}}
241
241
}
242
242
243
243
void check_conditional_literal (char * s , int * i ) {
You can’t perform that action at this time.
0 commit comments