repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wswitch-default-2.C
blob
832f867e07999a9a63fa7a127165bd7817731e3f
1
// PR C++/21123
2
/* { dg-do compile } */
3
/* { dg-options "-Wswitch-default" } */
4
5
6
template <typename ArrayType>
7
void foo( )
8
{
9
int i = 0;
10
11
switch ( i ) /* { dg-warning "switch missing default case" } */
12
{
13
case 9:
14
break;
15
}
16
}
17
18
void f()
19
{
20
foo<int>();
21
}