Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/comp-goto-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* Test diagnostics for addresses of labels and computed gotos. Test |
2 with no special options. */ | |
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */ | |
4 /* { dg-do compile } */ | |
5 /* { dg-options "" } */ | |
6 /* { dg-require-effective-target indirect_jumps } */ | |
7 /* { dg-require-effective-target label_values } */ | |
8 | |
9 void | |
10 f (void) | |
11 { | |
12 void *p = &&a; | |
13 goto *p; | |
14 a: ; | |
15 } |