aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda13.C
blob: 0323a0d05fc6afc6cf0f0a4dc3a2f9b2b1b1ea36 (plain)
1
2
3
4
5
// { dg-do compile { target c++17 } }

auto l1 = []() constexpr constexpr { }; // { dg-error "duplicate" }
auto l2 = []() mutable mutable { }; // { dg-error "duplicate" }
auto l3 = []() static { };	    // { dg-error "static' only valid in lambda with" "" { target c++20_down } }