Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / cxx2b-deducing-this-compat.cpp
blob32406dfcac4257b375c9e3e576e69840fd81d039
1 // RUN: %clang_cc1 -fsyntax-only -std=c++20 %s -verify
3 struct S {
4 void f(this auto &a); // expected-error {{explicit object parameters are incompatible with C++ standards before C++2b}}
5 };
7 void f() {
8 (void)[](this auto&a){}; // expected-error {{explicit object parameters are incompatible with C++ standards before C++2b}}