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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Verify that we can narrow the storage associated with label diffs. */
kono
parents:
diff changeset
2 /* { dg-require-effective-target indirect_jumps } */
kono
parents:
diff changeset
3 /* { dg-require-effective-target label_values } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 int foo (int a)
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 static const short ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
kono
parents:
diff changeset
8 void *p = &&l1 + ar[a];
kono
parents:
diff changeset
9 goto *p;
kono
parents:
diff changeset
10 l1:
kono
parents:
diff changeset
11 return 1;
kono
parents:
diff changeset
12 l2:
kono
parents:
diff changeset
13 return 2;
kono
parents:
diff changeset
14 }