Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wunused-var-24.C

raw
1 // PR c++/66543
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-Wunused-but-set-variable" }
4
5 int main() {
6 auto f = []() { };
7 [=](auto) {
8 using Foo = decltype(f());
9 };
10 }