blob: 5ca4905d1be477a93252e641788507396082984b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* Test for security warning when non-literal format has no arguments. */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -Wformat -Wformat-security" } */
extern int printf (const char *, ...);
void
foo (char *s)
{
printf (s); /* { dg-warning "no format arguments" "security warning" } */
}
|