Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / c-c++-common / Wunused-var-13.c
blob3afd873b64647f6d80aa6309fbbaaa5b60fe2e08
1 /* PR c/46015 */
2 /* { dg-options "-Wunused" } */
3 /* { dg-do compile } */
5 int
6 f1 (int i)
8 static void *labs[2] = { &&lab1, &&lab2 };
9 goto *(labs[i & 1]);
11 lab1:
12 return 1;
13 lab2:
14 return 2;
17 int
18 f2 (int i)
20 void *labs[2] = { &&lab1, &&lab2 };
21 goto *labs[i & 1];
23 lab1:
24 return 1;
25 lab2:
26 return 2;