diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e678265bdd01..aeaa357c2e56 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-02 Paolo Carlini + + PR c++/79590 + * g++.dg/cpp1y/lambda-generic-noexcept1.C: New. + 2017-10-02 Paolo Carlini PR c++/79005 diff --git a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C new file mode 100644 index 000000000000..082aff9261d9 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C @@ -0,0 +1,10 @@ +// PR c++/79590 +// { dg-do compile { target c++14 } } + +auto f = [](auto x) noexcept(noexcept(x)) { }; + +int main() +{ + [](auto x) noexcept(noexcept(x)) { } (0); + [](auto) noexcept(noexcept(0)) { } (0); +}