summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn3.C
blob: 77f35bc4630061cb562b8db362e182c821a2e3c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/49482
// { dg-options "-std=c++0x -Wunused-but-set-parameter" }

template<class T>
void f() {
  []( bool b ){ return b; };
}

int main()
{
  f<int>();
}