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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20081117-1.c] - Rev 816

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

extern void abort (void);
 
struct s
{
  unsigned long long a:16;
  unsigned long long b:32;
  unsigned long long c:16;
};
 
__attribute__ ((noinline)) unsigned
f (struct s s, unsigned i)
{
  return s.b == i;
}
 
struct s s = { 1, 0x87654321u, 2};
 
int
main ()
{
  if (!f (s, 0x87654321u))
    abort ();
  return 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.