summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-50220.C
blob: 240143cf65cea57956927002716836cfc3fab3b7 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/50220
// { dg-options -std=c++0x }

template<typename Foo> struct Foobar {};

void foobar(const Foobar<void>& obj)
{
  [obj](){}();
}