Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/constexpr-lambda13.C

raw
1 // { dg-do compile { target c++17 } }
2
3 auto l1 = []() constexpr constexpr { }; // { dg-error "duplicate" }
4 auto l2 = []() mutable mutable { }; // { dg-error "duplicate" }
5 auto l3 = []() static { }; // { dg-error "static' only valid in lambda with" "" { target c++20_down } }