Retro68/binutils/ld/testsuite/ld-plugin/pr15323a.c

15 lines
160 B
C

#include <stdio.h>
int x;
__attribute__((weak))
void foobar (void) { x++; }
int main (void)
{
foobar ();
if (x == -1)
printf ("OK\n");
return 0;
}