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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [switch1.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 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.