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] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR middle-end/18859 */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
 
5
void foo(int a)
6
{
7
  switch (a)
8
  {
9
    case 0 ... -1:  /* { dg-warning "empty range" } */
10
      a = a+2;
11
      break;
12
 
13
    case 1 ... 2:
14
      a = 0;
15
      break;
16
 
17
    case 3 ... 4:
18
      a = 1;
19
      break;
20
 
21
    case 5 ... 6:
22
      a = 0;
23
      break;
24
  }
25
}

powered by: WebSVN 2.1.0

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