// RUN: %clang_cc1 -fsyntax-only -std=c++17 -pedantic -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++20 -Wc++17-compat-pedantic -verify %s -Wno-defaulted-function-deleted
;
int const&;
int use_pa = ;
// expected-warning@-2 {{invoking a pointer to a 'const &' member function on an rvalue is a C++20 extension}}
// expected-warning@-4 {{invoking a pointer to a 'const &' member function on an rvalue is incompatible with C++ standards before C++20}}
;
auto Lambda = ;
decltype AnotherLambda;
// expected-error@-2 {{no matching constructor}} expected-note@-3 2{{candidate}}
// expected-warning@-4 {{default construction of lambda is incompatible with C++ standards before C++20}}
void
// expected-error@-2 {{deleted}} expected-note@-10 {{lambda}}
// expected-warning@-4 {{assignment of lambda is incompatible with C++ standards before C++20}}
;
;
void
;
;
static auto = ;
// expected-warning@-2 {{decomposition declaration declared 'static' is a C++20 extension}}
// expected-warning@-4 {{decomposition declaration declared 'static' is incompatible with C++ standards before C++20}}
void
;