Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr79677.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
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; }