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