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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20051012-1.c] - Rev 825

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

extern void abort (void);
 
struct type 
{
  int *a;
 
  int b:16;
  unsigned int p:9;
} t;
 
unsigned int 
foo ()
{
  return t.p;
}
 
int 
main (void)
{
  t.p = 8;
  if (foo (t) != 8)
    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.