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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [switch1.C] - Blame information for rev 301

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile { target { int32plus } } }
2
 
3
signed char sc;
4
 
5
void
6
foo (void)
7
{
8
  switch (sc)
9
    {
10
    case 1:
11
    case 2 * __SCHAR_MAX__ + 3:         // { dg-warning "case label value exceeds maximum" }
12
    case - 2 * __SCHAR_MAX__ - 1:       // { dg-warning "case label value is less than minimum" }
13
      break;
14
    }
15
}

powered by: WebSVN 2.1.0

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