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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
warn1.C
blob
96ed14852260e17edd61139df1e7c3977104059a
1
// Build don't link:
2
// Special g++ 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; // WARNING - unused
17
}
18
19
S();
20
~S();
21
};
22
23
void f()
24
{
25
S<int> si;
26
si.foo();
27
}