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
* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wunused-var-13.c
blob
5b49702d413d2efb58d7951deed16d2cdafc5438
1
/* PR c/46015 */
2
/* { dg-options "-Wunused" } */
3
/* { dg-do compile } */
4
/* { dg-require-effective-target label_values } */
5
6
int
7
f1
(
int
i
)
8
{
9
static void
*
labs
[
2
] = { &&
lab1
, &&
lab2
};
10
goto
*(
labs
[
i
&
1
]);
11
12
lab1
:
13
return
1
;
14
lab2
:
15
return
2
;
16
}
17
18
int
19
f2
(
int
i
)
20
{
21
void
*
labs
[
2
] = { &&
lab1
, &&
lab2
};
22
goto
*
labs
[
i
&
1
];
23
24
lab1
:
25
return
1
;
26
lab2
:
27
return
2
;
28
}