view gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this12.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
line wrap: on
line source

// Uses of 'this' in unevaluated context are not odr-uses.
// { dg-do compile { target c++11 } }

struct A
{
  int f() { return 0; }
  int i;

  void foo()
  {
    [] () { sizeof(i); sizeof(f()); };
  }
};