Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr79677.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR c/79677 */ /* { dg-do compile } */ /* { dg-options "-Wformat -Werror=format-security -Wformat" } */ /* { dg-message "some warnings being treated as errors" "" { target *-*-* } 0 } */ void foo (char *); int main () { char s[10] = "%s"; foo (s); __builtin_printf (s); /* { dg-error "format not a string literal and no format arguments" } */ return 0; }