Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / execute / 20000910-2.c
blob0023d2451e0b6976278f13ffd86a66715f02e116
1 /* Copyright (C) 2000 Free Software Foundation */
2 /* by Alexandre Oliva <aoliva@redhat.com> */
4 #include <stdlib.h>
5 #include <string.h>
7 char *list[] = { "*", "e" };
9 static int bar (const char *fmt) {
10 return (strchr (fmt, '*') != 0);
13 static void foo () {
14 int i;
15 for (i = 0; i < sizeof (list) / sizeof (*list); i++) {
16 const char *fmt = list[i];
17 if (bar (fmt))
18 continue;
19 if (i == 0)
20 abort ();
21 else
22 exit (0);
26 int main () {
27 foo ();