aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wswitch-default.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2003-03-04 12:06:32 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2003-03-04 11:06:32 +0000
commit2ad1815d458820ca80fc82fdd9cb1695388e7f20 (patch)
tree92460f53d9e91b8dcf0b9b59cd6749d9166388c1 /gcc/testsuite/gcc.dg/Wswitch-default.c
parente2483ef7c73635b42aa871ef48b7d8c7763c0e53 (diff)
downloadgcc-2ad1815d458820ca80fc82fdd9cb1695388e7f20.zip
gcc-2ad1815d458820ca80fc82fdd9cb1695388e7f20.tar.gz
gcc-2ad1815d458820ca80fc82fdd9cb1695388e7f20.tar.bz2
re PR c/9262 (ICE on false case label)
PR c/9262 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY. (c_finish_case): Rechain the next statements to the SWITCH_STMT. From-SVN: r63783
Diffstat (limited to 'gcc/testsuite/gcc.dg/Wswitch-default.c')
-rw-r--r--gcc/testsuite/gcc.dg/Wswitch-default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/Wswitch-default.c b/gcc/testsuite/gcc.dg/Wswitch-default.c
index 3cc7f2e..a1a3d39 100644
--- a/gcc/testsuite/gcc.dg/Wswitch-default.c
+++ b/gcc/testsuite/gcc.dg/Wswitch-default.c
@@ -18,8 +18,8 @@ foo (int i, int j, enum e ei, enum e ej, enum e ek, enum e el,
case 4: return 3;
default: break;
}
- switch (ei)
- { /* { dg-warning "switch missing default case" } */
+ switch (ei) /* { dg-warning "switch missing default case" } */
+ {
}
switch (ej)
{