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/] [930630-1.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
/* The bit-field below would have a problem if __INT_MAX__ is too
/* The bit-field below would have a problem if __INT_MAX__ is too
   small.  */
   small.  */
#if __INT_MAX__ < 2147483647
#if __INT_MAX__ < 2147483647
int
int
main (void)
main (void)
{
{
  exit (0);
  exit (0);
}
}
#else
#else
main ()
main ()
{
{
  struct
  struct
    {
    {
      signed int bf0:17;
      signed int bf0:17;
      signed int bf1:7;
      signed int bf1:7;
    } bf;
    } bf;
 
 
  bf.bf1 = 7;
  bf.bf1 = 7;
  f (bf.bf1);
  f (bf.bf1);
  exit (0);
  exit (0);
}
}
 
 
f (x)
f (x)
     int x;
     int x;
{
{
  if (x != 7)
  if (x != 7)
    abort ();
    abort ();
}
}
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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