| 1 |
/* PR c/66415 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-Wformat -fdiagnostics-show-caret" } */ |
| 4 |
/* { dg-set-compiler-env-var COLUMNS "83" } */ |
| 5 |
|
| 6 |
void |
| 7 |
fn1 (void) |
| 8 |
{ |
| 9 |
__builtin_printf ("xxxxxxxxxxxxxxxxx%dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); /* { dg-warning "71:format" } */ |
| 10 |
|
| 11 |
/* { dg-begin-multiline-output "" } |
| 12 |
__builtin_printf ("xxxxxxxxxxxxxxxxx%dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); |
| 13 |
~^ |
| 14 |
| |
| 15 |
int |
| 16 |
{ dg-end-multiline-output "" } */ |
| 17 |
|
| 18 |
} |