Debian Codegraph @

clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p6-cxx23.cpp

raw
1 // RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
2
3 auto x0 = requires (this int) { true; }; // expected-error {{a requires expression cannot have an explicit object parameter}}
4 auto x1 = requires (int, this int) { true; }; // expected-error {{a requires expression cannot have an explicit object parameter}}
5
6 template<this auto> // expected-error {{expected template parameter}}
7 void f(); // expected-error {{no function template matches function template specialization 'f'}}