aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-names1.C
blob: a09af89ce43ae8c59133b6bd806d59155c018e4a (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/56710
// { dg-do compile { target c++11 } }
// { dg-options "-Wall" }

int main()
{
    int t = 0;
    return [&]() -> int {int __t; __t = t; return __t; }();
    return [&t]() -> int {int __t; __t = t; return __t; }();
}