OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [ia64/] [fptr-1.c] - Rev 319

Compare with Previous | Blame | View Log

/* { dg-do compile { target ia64-*-linux* } } */
/* { dg-options "-O2" } */
 
/* { dg-final { scan-assembler-not "@ltoffx\\(os_boot_rendez#\\)" } } */
/* { dg-final { scan-assembler "@ltoff\\(@fptr\\(os_boot_rendez#\\)\\)" } } */
 
/* Test function descriptor access.  */
 
struct ia64_fdesc
{
  unsigned long func;
  unsigned long gp;
};
 
void
os_boot_rendez (void)
{
}
 
extern int check (unsigned long);
 
int
main (int argc, char **argv)
{
  int i;
  int res = 0;
 
  for (i = 0; i < 1; i++)
    res += check (((struct ia64_fdesc *) os_boot_rendez)->gp);
  return res;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.