comparison gcc/testsuite/c-c++-common/Wswitch-unreachable-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR c/71249 */
2 /* { dg-do compile } */
3
4 int
5 f (int i)
6 {
7 switch (i)
8 {
9 {
10 int j;
11 foo:
12 return i; /* { dg-bogus "statement will never be executed" } */
13 };
14 case 3:
15 goto foo;
16 }
17 return i;
18 }