comparison gcc/testsuite/c-c++-common/Wimplicit-fallthrough-7.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
49 49
50 switch (i) 50 switch (i)
51 { 51 {
52 case 1: 52 case 1:
53 { 53 {
54 switch (i + 2) 54 switch (i + 2) /* { dg-warning "statement may fall through" } */
55 case 4: 55 case 4:
56 bar (1); /* { dg-warning "statement may fall through" } */ 56 bar (1);
57 case 5: 57 case 5:
58 bar (5); 58 bar (5);
59 return; 59 return;
60 } 60 }
61 case 2: 61 case 2: