| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-Wformat-truncation" } */ |
| 3 |
|
| 4 |
/* A run of blank lines, so that we would fail the assertion in input.c:1388: |
| 5 |
gcc_assert (line_width >= (start.column - 1 + literal_length)); */ |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
void test (void) |
| 12 |
{ |
| 13 |
char tmp[128]; |
| 14 |
/* Point to the run of blank lines, so that the components of the overlong |
| 15 |
string appear to be present within the run of blank lines. */ |
| 16 |
# 6 "../../../../src/gcc/testsuite/gcc.dg/format/pr78569.c" |
| 17 |
__builtin_snprintf (tmp, sizeof(tmp), |
| 18 |
"The Base Band sends this value as a response to a " |
| 19 |
"request for IMSI detach sent over the control " |
| 20 |
"channel uplink (see section 7.6.1)."); |
| 21 |
|
| 22 |
/* { dg-warning "output truncated" "" { target *-*-* } 7 } */ |
| 23 |
/* { dg-message "output" "" { target *-*-* } 6 } */ |
| 24 |
} |