summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-use2.C
blob: 695a0b4329296c291ca1e0abb6125ce92a1ee620 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/50224
// { dg-options "-std=c++0x -Wunused-parameter" }

struct T;

void m(T& t) // ERROR here
{
  [&]{
    t; // ``t`` is referenced here
  };
}