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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
warn1.C
blob
de9e7bb40f27c7a21b93c80b076f9a3f10181a3e
1
// { dg-do assemble }
2
// { dg-options "-Wunused" }
3
4
template <class T>
5
struct S
6
{
7
struct R
8
{
9
R();
10
~R();
11
};
12
13
void foo()
14
{
15
R r; // no warning
16
int i; // { dg-warning "" } unused
17
}
18
19
S();
20
~S();
21
};
22
23
void f()
24
{
25
S<int> si;
26
si.foo();
27
}