1 #include <stdio.h> 2 3 extern int foo; 4 extern void bar (void); 5 6 void 7 xxx (void) 8 { 9 printf ("MAIN\n"); 10 } 11 12 int 13 main (void) 14 { 15 foo = 1; 16 bar (); 17 if (foo == -1) 18 printf ("OK1\n"); 19 else if (foo == 1) 20 printf ("OK2\n"); 21 return 0; 22 } 23