1/* { dg-do compile { target ia64-*-linux* } } */ 2/* { dg-options "-O2" } */ 3 4/* { dg-final { scan-assembler-not "@ltoffx\\(os_boot_rendez#\\)" } } */ 5/* { dg-final { scan-assembler "@ltoff\\(@fptr\\(os_boot_rendez#\\)\\)" } } */ 6 7/* Test function descriptor access. */ 8 9struct ia64_fdesc 10{ 11 unsigned long func; 12 unsigned long gp; 13}; 14 15void 16os_boot_rendez (void) 17{ 18} 19 20extern int check (unsigned long); 21 22int 23main (int argc, char **argv) 24{ 25 int i; 26 int res = 0; 27 28 for (i = 0; i < 1; i++) 29 res += check (((struct ia64_fdesc *) os_boot_rendez)->gp); 30 return res; 31} 32