Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr70100.C

raw
1 // PR middle-end/70100
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-O0" }
4
5 void
6 bar (int)
7 {
8 }
9
10 template <typename ... Args>
11 void
12 foo (Args && ... args)
13 {
14 [&] { [&] { bar(args...); }; };
15 }
16
17 int
18 main ()
19 {
20 foo (2);
21 }