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.dg/] [switch-9.c] - Rev 149

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

/* PR middle-end/18859 */
/* { dg-do compile } */
/* { dg-options "" } */
 
void foo(int a)
{
  switch (a)
  {
    case 0 ... -1:  /* { dg-warning "empty range" } */
      a = a+2;
      break;
 
    case 1 ... 2:
      a = 0;
      break;
 
    case 3 ... 4:
      a = 1;
      break;
 
    case 5 ... 6:
      a = 0;
      break;
  }
}
 

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.