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
i386: Utilize VCOMSBF16 for BF16 Comparisons with AVX10.2
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-8.C
blob
69fc6fb7918c13d17de1cb929961e38c32ebe069
1
// { dg-do compile }
2
// { dg-options "-Wunused" }
3
4
template <int N>
5
void
6
f1 (void)
7
{
8
extern int extvari;
9
extvari = 1;
10
}
11
12
int extvarj;
13
14
template <int N>
15
void
16
f2 (void)
17
{
18
extern int extvarj;
19
extvarj = 1;
20
}
21
22
static int extvark;
23
24
template <int N>
25
void
26
f3 (void)
27
{
28
extern int extvark;
29
extvark = 1;
30
}
31
32
template <int N>
33
int
34
f4 (void)
35
{
36
return extvark;
37
}
38
39
void
40
test ()
41
{
42
f1<0> ();
43
f2<0> ();
44
f3<0> ();
45
(void) f4<0> ();
46
}