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:
Roger Sayle 2004-12-16 17:52:02 +00:00 committed by Roger Sayle
parent 26be549aac
commit f33bcdae77
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,10 @@
/* PR middle-end/18493 */
/* { dg-do link } */
int main() {
goto bug;
switch(0) {
bug: return 0;
}
}