repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
switch1.C
blob
49c17e9120c017e2c90eb955613113dbad93dc92
1
// { 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
}