Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git] / embedded-5_0-branch / gcc / testsuite / g++.dg / cpp1y / lambda-generic-uneval1.C
blob113eacf843cc17f29204ad802b8e768e5eb1b4a9
1 // PR c++/64834
2 // { dg-do compile { target c++14 } }
4 template <typename F>
5 void e(F f)
7   f(1);
10 template <int I>
11 void bar() {
12     int x;
13     e([&] (const int& y) { (void)sizeof(x); });
14     e([&] (const auto& y) { (void)sizeof(x); });
17 void baz() { bar<1>(); }