mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 12:21:15 +08:00
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
@ -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…
x
Reference in New Issue
Block a user