1999-08-31 01:14:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
foo (void)
|
|
|
|
#else
|
|
|
|
int
|
|
|
|
foo ()
|
|
|
|
#endif
|
|
|
|
{
|
2014-03-19 15:22:44 +00:00
|
|
|
int y;
|
|
|
|
volatile int x;
|
1999-08-31 01:14:27 +00:00
|
|
|
|
2014-03-19 15:22:44 +00:00
|
|
|
x = 5; x = 5;
|
1999-08-31 01:14:27 +00:00
|
|
|
y = 3;
|
|
|
|
|
|
|
|
return x + y;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
main (void)
|
|
|
|
#else
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
int y, z;
|
|
|
|
|
|
|
|
y = 2;
|
|
|
|
z = 9;
|
|
|
|
y = foo ();
|
|
|
|
z = y;
|
2014-03-19 15:22:44 +00:00
|
|
|
y = y + 2; /* jump here */
|
1999-08-31 01:14:27 +00:00
|
|
|
y = baz ();
|
2014-03-19 15:22:44 +00:00
|
|
|
return 0; /* until here */
|
1999-08-31 01:14:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
baz (void)
|
|
|
|
#else
|
|
|
|
int
|
|
|
|
baz ()
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
return 5;
|
|
|
|
}
|