1 // RUN: %clang_cc1 -std=c++2a -verify %s
2 // expected-no-diagnostics
4 // This test does two things.
5 // Deleting the copy constructor ensures that an [=, this] capture doesn't copy the object.
6 // Accessing a member variable from the lambda ensures that the capture actually works.
12 auto L
= [=, this]() -> int { return i
; };