PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / constexpr-lambda15.C
blob358d4aaed8fcaed0b1e2fae36cdb8e3878bfccec
1 // PR c++/79461
2 // { dg-do compile { target c++14 } }
4 struct S {
5   constexpr S(int i) {
6     auto f = [i]{};             // { dg-error "literal" "" { target c++14_only } }
7   }
8 };
9 int main() {}