Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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" }
}