mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
24 lines
254 B
C
24 lines
254 B
C
#include <stdio.h>
|
|
|
|
int x;
|
|
int y;
|
|
|
|
__attribute__((weak))
|
|
void foobar (void) { y++; x++; }
|
|
|
|
int main (void)
|
|
{
|
|
foobar ();
|
|
if (y == 0)
|
|
{
|
|
if (x == -1)
|
|
printf ("OK\n");
|
|
}
|
|
else
|
|
{
|
|
if (x == 1)
|
|
printf ("OK\n");
|
|
}
|
|
return 0;
|
|
}
|