Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-23.C
blob: baa1d03d46ca4ab8114df1f0494c9d127d738262 [
file
] [
log
] [
blame
]
// PR c++/64383
// { dg-options "-Wunused-variable" }
struct
Y
{
~
Y
();
};
struct
X
{
static
Y
&
get
();
};
int
main
()
{
Y
&
y
=
X
::
get
();
// { dg-warning "unused" }
}