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" }
}