PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-70570.C
blobdebe34116fea924c8047aba8c006db3c30e5434c
1 // PR c++/70570
2 // { dg-do assemble { target c++14 } }
4 template<typename T> void foo(T f) {
5   f(1);
8 int main() {
9   static const int x = 42;
10   foo([](auto y){
11     x;
12     [](){
13       x;
14     };
15   });