match: Optimize `max(a,b) == 0` to `(a|b) == 0` for unsigned [PR115275]
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wunused-var-23.C
blobbaa1d03d46ca4ab8114df1f0494c9d127d738262
1 // PR c++/64383
2 // { dg-options "-Wunused-variable" }
4 struct Y
6     ~Y();
7 };
9 struct X
11     static Y& get();
14 int main()
16     Y& y = X::get();  // { dg-warning "unused" }