Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/Wimplicit-fallthrough-34.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/77946 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-require-effective-target indirect_jumps } */ | |
4 /* { dg-options "-Wimplicit-fallthrough" } */ | |
5 | |
6 void | |
7 foo (void) | |
8 { | |
9 static void *p = &&lab; | |
10 goto *p; | |
11 /*FALLTHRU*/ | |
12 lab:; | |
13 } |