2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 960327-1.c
blobbc82cb5dacf632509c760a6afba9d1e87b782e98
1 #include <stdio.h>
2 g ()
4 return '\n';
7 f ()
9 char s[] = "abcedfg012345";
10 char *sp = s + 12;
12 switch (g ())
14 case '\n':
15 break;
18 while (*--sp == '0')
20 sprintf (sp + 1, "X");
22 if (s[12] != 'X')
23 abort ();
26 main ()
28 f ();
29 exit (0);