Sign in
gnu
/
gcc
/
609d1c1bf0472f9d9415b0b124603348dbcd9e4e
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
warn1.C
blob: 96ed14852260e17edd61139df1e7c3977104059a [
file
] [
log
] [
blame
]
// Build don't link:
// Special g++ Options: -Wunused
template
<
class
T
>
struct
S
{
struct
R
{
R
();
~
R
();
};
void
foo
()
{
R r
;
// no warning
int
i
;
// WARNING - unused
}
S
();
~
S
();
};
void
f
()
{
S
<int>
si
;
si
.
foo
();
}