Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C

raw
1 // PR c++/79590
2 // { dg-do compile { target c++14 } }
3
4 auto f = [](auto x) noexcept(noexcept(x)) { };
5
6 int main()
7 {
8 [](auto x) noexcept(noexcept(x)) { } (0);
9 [](auto) noexcept(noexcept(0)) { } (0);
10 }