Retro68/binutils/ld/testsuite/ld-size/size-6a.c
Wolfgang Thaller f485e125c4 binutils 2.39
2022-10-27 20:45:45 +02:00

16 lines
236 B
C

#include <stdio.h>
extern char bar[];
extern char size_of_bar __asm__ ("bar@SIZE");
extern void set_bar (int, int);
int
main ()
{
set_bar (1, 20);
if (10 == (long) &size_of_bar && bar[1] == 20)
printf ("OK\n");
return 0;
}