Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-uneval1.C

raw
1 // PR c++/64834
2 // { dg-do compile { target c++14 } }
3
4 template <typename F>
5 void e(F f)
6 {
7 f(1);
8 }
9
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); });
15 }
16
17 void baz() { bar<1>(); }