projects
/
platform
/
upstream
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR c++/71465 (ICE on invalid C++ code (with duplicate base) on x86_64-linux-gnu...
[platform/upstream/gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
switch1.C
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
}