Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20000112-1.c

raw
1 #include <string.h>
2
3 void abort (void);
4 void exit (int);
5
6 static int
7 special_format (fmt)
8 const char *fmt;
9 {
10 return (strchr (fmt, '*') != 0
11 || strchr (fmt, 'V') != 0
12 || strchr (fmt, 'S') != 0
13 || strchr (fmt, 'n') != 0);
14 }
15
16 int
17 main(void)
18 {
19 if (special_format ("ee"))
20 abort ();
21 if (!special_format ("*e"))
22 abort ();
23 exit (0);
24 }
25