x86-64: Use $NOPIE_LDFLAGS/$NOPIE_CFLAGS on protected-func-1
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / pr19784c.c
1 #include <stdio.h>
2
3 extern void abort (void);
4 extern int foo (int) __attribute__ ((visibility("hidden")));
5
6 void bar(void)
7 {
8 if (foo (5) != 5)
9 abort ();
10 printf("PASS\n");
11 }