summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this4.C
blob: 29cd2a97b3ff10af1a404cc73741ddab966fe992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/48523
// { dg-options -std=c++0x }

template<typename>
struct X
{
  bool b;

  void f()
  {
    [this]{ return b; };
  }
};