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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-6.C
blob
0fb8e5cac38f060a6243dcf57f668d7390b97d53
1
// { dg-do compile }
2
// { dg-options "-Wunused" }
3
4
template <int N>
5
int
6
f1 (void)
7
{
8
int c = ({
9
int a;
10
a = 1;
11
a; });
12
return c;
13
}
14
15
template <int N>
16
void
17
f2 (void)
18
{
19
int f;
20
f = 0;
21
__asm__ __volatile__ ("" : "+r" (f));
22
}
23
24
void
25
test ()
26
{
27
(void) f1<0> ();
28
f2<0> ();
29
}