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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr29584.c] - Rev 154

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

/* PR middle-end/29584 */
/* { dg-do compile } */
 
extern void *foo1 (void);
extern void foo2 (void);
extern void foo3 (void *, void *);
extern int foo4 (void);
 
void
bar (void)
{
  int i;
  void *s;
  for (i = 1; i < 4; i++)
    {
      if (foo4 ())
	foo2 ();
      switch (0x8000000UL + i * 0x400)
	{
	case 0x80000000UL ... 0x80000000UL + 0x3a000000UL - 1:
	  s = 0;
	  break;
	default:
	  s = foo1 ();
	}
      foo3 ((void *) (0x8000000UL + i * 0x400), s);
    }
}
 

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.