re PR testsuite/42086 (FAIL: gcc.target/ia64/fptr-1.c execution test)
[official-gcc.git] / gcc / testsuite / gcc.target / ia64 / fptr-1.c
blobb3d4536bf97231089bf6d2f53cf85a54bb1e7846
1 /* { dg-do compile { target ia64-*-linux* } } */
2 /* { dg-options "-O2" } */
4 /* { dg-final { scan-assembler-not "@ltoffx\\(os_boot_rendez#\\)" } } */
5 /* { dg-final { scan-assembler "@ltoff\\(@fptr\\(os_boot_rendez#\\)\\)" } } */
7 /* Test function descriptor access. */
9 struct ia64_fdesc
11 unsigned long func;
12 unsigned long gp;
15 void
16 os_boot_rendez (void)
20 extern int check (unsigned long);
22 int
23 main (int argc, char **argv)
25 int i;
26 int res = 0;
28 for (i = 0; i < 1; i++)
29 res += check (((struct ia64_fdesc *) os_boot_rendez)->gp);
30 return res;