Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
warn1.C
blob: de9e7bb40f27c7a21b93c80b076f9a3f10181a3e [
file
] [
log
] [
blame
]
// { dg-do assemble }
// { dg-options "-Wunused" }
template
<
class
T
>
struct
S
{
struct
R
{
R
();
~
R
();
};
void
foo
()
{
R r
;
// no warning
int
i
;
// { dg-warning "" } unused
}
S
();
~
S
();
};
void
f
()
{
S
<int>
si
;
si
.
foo
();
}