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
* c-decl.c (grokfield): Allow typedefs for anonymous structs and
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
switch-warn-3.c
1
/* { dg-do compile } */
2
/* { dg-options "-Wswitch-enum" } */
3
4
enum a { a0, a1, a2, a3 };
5
6
int error(enum a aa)
7
{
8
switch ( aa )
9
{
10
case a0 ... a3:
11
return 1;
12
}
13
return 0;
14
}