Back to index

cell-binutils  2.17cvs20070401
dl4main.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 extern int foo1;
00004 extern int foo2;
00005 extern void bar (void);
00006 
00007 void
00008 xxx1 (void)
00009 {
00010   printf ("MAIN1\n");
00011 }
00012 
00013 void
00014 xxx2 (void)
00015 {
00016   printf ("MAIN2\n");
00017 }
00018 
00019 int
00020 main (void)
00021 {
00022   foo1 = 1;
00023   foo2 = 1;
00024   bar ();
00025   if (foo1 == -1)
00026     printf ("OK1\n");
00027   else if (foo1 == 1)
00028     printf ("OK2\n");
00029   if (foo2 == -1)
00030     printf ("OK3\n");
00031   else if (foo2 == 1)
00032     printf ("OK4\n");
00033   return 0;
00034 }