x86: Skip __[start|stop]_SECNAME for --gc-sections -z start-stop-gc
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / pr23997b.c
1 #include <stdio.h>
2
3 typedef void (*func_t) (void);
4
5 extern func_t get_foo (void);
6
7 void
8 foo (void)
9 {
10 }
11
12 int
13 main ()
14 {
15 func_t p;
16
17 foo ();
18 p = get_foo ();
19 p ();
20
21 if (foo == p)
22 printf ("PASS\n");
23
24 return 0;
25 }