Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / format / sec-1.c
blob9189b51e10d03a10285942aeabe65c9b0840dba9
1 /* Test for security warning when non-literal format has no arguments. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu99 -Wformat -Wformat-security" } */
6 #include "format.h"
8 void
9 foo (char *s)
11 printf (s); /* { dg-warning "no format arguments" "security warning" } */