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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20050107-1.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
typedef enum { C = 1, D = 2 } B;
typedef enum { C = 1, D = 2 } B;
extern void abort (void);
extern void abort (void);
 
 
struct S
struct S
{
{
  B __attribute__ ((mode (byte))) a;
  B __attribute__ ((mode (byte))) a;
  B __attribute__ ((mode (byte))) b;
  B __attribute__ ((mode (byte))) b;
};
};
 
 
void
void
foo (struct S *x)
foo (struct S *x)
{
{
  if (x->a != C || x->b != D)
  if (x->a != C || x->b != D)
    abort ();
    abort ();
}
}
 
 
int
int
main (void)
main (void)
{
{
  struct S s;
  struct S s;
  s.a = C;
  s.a = C;
  s.b = D;
  s.b = D;
  foo (&s);
  foo (&s);
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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