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" } */
5 
6 #include "format.h"
7 
8 void
foo(char * s)9 foo (char *s)
10 {
11   printf (s); /* { dg-warning "no format arguments" "security warning" } */
12 }
13