summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn1.C
blob: b384d5cff6d79bc239aa1304536e6d6733aafe62 (plain)
1
2
3
4
5
6
7
8
// PR c++/41920
// { dg-options "-std=c++0x -Wall -Wextra" }

int foo(int i)
{
    auto bar = [=](){ return i; };
    return bar();
}