2013-03-30 00:38:39 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int x;
|
2015-09-11 17:02:57 +00:00
|
|
|
int y;
|
2013-03-30 00:38:39 +00:00
|
|
|
|
|
|
|
__attribute__((weak))
|
2015-09-11 17:02:57 +00:00
|
|
|
void foobar (void) { y++; x++; }
|
2013-03-30 00:38:39 +00:00
|
|
|
|
|
|
|
int main (void)
|
|
|
|
{
|
|
|
|
foobar ();
|
2015-09-11 17:02:57 +00:00
|
|
|
if (y == 0)
|
|
|
|
{
|
|
|
|
if (x == -1)
|
|
|
|
printf ("OK\n");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (x == 1)
|
|
|
|
printf ("OK\n");
|
|
|
|
}
|
2013-03-30 00:38:39 +00:00
|
|
|
return 0;
|
|
|
|
}
|