OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20021111-1.c] - Rev 297

Go to most recent revision | Compare with Previous | Blame | View Log

/* Origin: PR c/8467 */
 
extern void abort (void);
extern void exit (int);
 
int aim_callhandler(int sess, int conn, unsigned short family, unsigned short type);
 
int aim_callhandler(int sess, int conn, unsigned short family, unsigned short type)
{
  static int i = 0;
 
  if (!conn)
    return 0;
 
  if (type == 0xffff)
    {
      return 0;
    }
 
  if (i >= 1)
    abort ();
 
  i++;
  return aim_callhandler(sess, conn, family, (unsigned short) 0xffff);
}
 
int main (void)
{
  aim_callhandler (0, 1, 0, 0);
  exit (0);
}
 

Go to most recent revision | 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.