summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-lookup-neg.C
blob: e07e892a1a3de5f93301d349a5d673b62241fe66 (plain)
1
2
3
4
5
6
7
// Test that we don't crash on a failed lookup.
// { dg-options -std=c++0x }

int main()
{
  [i]{};			// { dg-error "not declared" }
}