Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/format/pr78569.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-Wformat-truncation" } */ /* A run of blank lines, so that we would fail the assertion in input.c:1388: gcc_assert (line_width >= (start.column - 1 + literal_length)); */ void test (void) { char tmp[128]; /* Point to the run of blank lines, so that the components of the overlong string appear to be present within the run of blank lines. */ # 6 "../../../../src/gcc/testsuite/gcc.dg/format/pr78569.c" __builtin_snprintf (tmp, sizeof(tmp), "The Base Band sends this value as a response to a " "request for IMSI detach sent over the control " "channel uplink (see section 7.6.1)."); /* { dg-warning "output truncated" "" { target *-*-* } 7 } */ /* { dg-message "output" "" { target *-*-* } 6 } */ }