repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git]
/
gcc-4_9
/
gcc
/
testsuite
/
c-c++-common
/
Wunused-var-13.c
blob
3afd873b64647f6d80aa6309fbbaaa5b60fe2e08
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
}