Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/labels-3.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 /* Verify that we can narrow the storage associated with label diffs. */ |
2 /* { dg-require-effective-target indirect_jumps } */ | |
3 /* { dg-require-effective-target label_values } */ | |
4 | |
5 int foo (int a) | |
6 { | |
7 static const short ar[] = { &&l1 - &&l1, &&l2 - &&l1 }; | |
8 void *p = &&l1 + ar[a]; | |
9 goto *p; | |
10 l1: | |
11 return 1; | |
12 l2: | |
13 return 2; | |
14 } |