aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-neg.C
blob: 3f9da7e46658c1d0634f41eedf39e4b100640fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/50736
// { dg-do compile { target c++11 } }

int i;
void f();
typedef int T;

int main()
{
  [i]{};			// { dg-error "non-automatic" }
  [f]{};			// { dg-error "non-variable" }
  [T]{};			// { dg-error "non-variable" }
}

struct A { };