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
Merge from mainline.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
wcaselabel-1.c
blob
6f673dfaf690716f5c9604552fda78d6f3887dea
1
/* { dg-do compile } */
2
/* { dg-options "-w" } */
3
4
5
int
foo
(
int
x
)
6
{
7
switch
(
x
)
8
{
9
10
case
0
%
0
:
/* { dg-error "case label does not reduce to an integer constant" } */
11
return
1
;
12
default
:
13
return
2
;
14
}
15
}