PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / format / pr78569.c
blobdb2e95497f19dcc8262a1d5417aa39077df4a0e7
1 /* { dg-do compile } */
2 /* { dg-options "-Wformat-truncation" } */
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)); */
11 void test (void)
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).");
22 /* { dg-warning "output truncated" "" { target *-*-* } 7 } */
23 /* { dg-message "output" "" { target *-*-* } 6 } */