OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix PR40886.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
wcaselabel-1.c
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
}