re PR middle-end/18493 (gcc doesn't like switch blocks without case/default labels)
PR middle-end/18493 * gcc.dg/switch-8.c: New test case. From-SVN: r92271
This commit is contained in:
parent
26be549aac
commit
f33bcdae77
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-12-16 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
PR middle-end/18493
|
||||
* gcc.dg/switch-8.c: New test case.
|
||||
|
||||
2004-12-16 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
PR c++/18905
|
||||
|
|
10
gcc/testsuite/gcc.dg/switch-8.c
Normal file
10
gcc/testsuite/gcc.dg/switch-8.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* PR middle-end/18493 */
|
||||
/* { dg-do link } */
|
||||
|
||||
int main() {
|
||||
goto bug;
|
||||
switch(0) {
|
||||
bug: return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue