Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / warn / Wswitch-default-1.C
blob2236ae531e28eaa1eaa72d743e336e44ae490258
1 // PR C++/21123
2 /* { dg-do compile } */
3 /* { dg-options "-Wswitch-default" } */
6 template <typename ArrayType>
7 void foo( )
9     int i = 0;
11   switch ( i ) /* { dg-bogus "switch missing default case" } */
12   {
13   case 9:
14   default:
15   break;
16   }
19 void f()
21   foo<int>();