Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested8.C

raw
1 // PR c++/79180
2 // { dg-do run { target c++11 } }
3
4 void
5 foo (int a)
6 {
7 if (a != 127)
8 __builtin_abort ();
9 }
10
11 template <typename... Args>
12 void
13 bar (Args &&... args)
14 {
15 [&]() { [&]() { foo (args...); } (); } ();
16 }
17
18 int
19 main ()
20 {
21 int x = 127;
22 bar (x);
23 }