1999-08-31 03:14:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
foo (void)
|
|
|
|
#else
|
|
|
|
int
|
|
|
|
foo ()
|
|
|
|
#endif
|
|
|
|
{
|
2014-03-19 16:22:44 +01:00
|
|
|
int y;
|
|
|
|
volatile int x;
|
1999-08-31 03:14:27 +02:00
|
|
|
|
2014-03-19 16:22:44 +01:00
|
|
|
x = 5; x = 5;
|
1999-08-31 03:14:27 +02: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 16:22:44 +01:00
|
|
|
y = y + 2; /* jump here */
|
1999-08-31 03:14:27 +02:00
|
|
|
y = baz ();
|
2014-03-19 16:22:44 +01:00
|
|
|
return 0; /* until here */
|
1999-08-31 03:14:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
baz (void)
|
|
|
|
#else
|
|
|
|
int
|
|
|
|
baz ()
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
return 5;
|
|
|
|
}
|