PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / Wunused-var-13.c
blob5b49702d413d2efb58d7951deed16d2cdafc5438
1 /* PR c/46015 */
2 /* { dg-options "-Wunused" } */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target label_values } */
6 int
7 f1 (int i)
9 static void *labs[2] = { &&lab1, &&lab2 };
10 goto *(labs[i & 1]);
12 lab1:
13 return 1;
14 lab2:
15 return 2;
18 int
19 f2 (int i)
21 void *labs[2] = { &&lab1, &&lab2 };
22 goto *labs[i & 1];
24 lab1:
25 return 1;
26 lab2:
27 return 2;