OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/55058
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wunused-var-13.c
1
/* PR c/46015 */
2
/* { dg-options "-Wunused" } */
3
/* { dg-do compile } */
4
5
int
6
f1 (int i)
7
{
8
static void *labs[2] = { &&lab1, &&lab2 };
9
goto *(labs[i & 1]);
10
11
lab1:
12
return 1;
13
lab2:
14
return 2;
15
}
16
17
int
18
f2 (int i)
19
{
20
void *labs[2] = { &&lab1, &&lab2 };
21
goto *labs[i & 1];
22
23
lab1:
24
return 1;
25
lab2:
26
return 2;
27
}