Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr79677.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR c/79677 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Wformat -Werror=format-security -Wformat" } */ | |
4 /* { dg-message "some warnings being treated as errors" "" { target *-*-* } 0 } */ | |
5 | |
6 void foo (char *); | |
7 | |
8 int | |
9 main () | |
10 { | |
11 char s[10] = "%s"; | |
12 foo (s); | |
13 __builtin_printf (s); /* { dg-error "format not a string literal and no format arguments" } */ | |
14 return 0; | |
15 } |