PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wunused-var-24.C
blob924b2dbc68e561291d78b3c9d5915b2cdb455815
1 // PR c++/66543
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-Wunused-but-set-variable" }
5 int main() {
6   auto f = []() { };
7   [=](auto) {
8     using Foo = decltype(f());
9   };