binutils-gdb/ld/testsuite/ld-x86-64/pr19784c.c

12 lines
181 B
C

#include <stdio.h>
extern void abort (void);
extern int foo (int) __attribute__ ((visibility("hidden")));
void bar(void)
{
if (foo (5) != 5)
abort ();
printf("PASS\n");
}