brintos

brintos / llvm-project-archived public Read only

0
0
Text · 482 B · 9c1f30f Raw
8 lines · cpp
1// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s2 3auto x0 = requires (this int) { true; }; // expected-error {{a requires expression cannot have an explicit object parameter}}4auto x1 = requires (int, this int) { true; }; // expected-error {{a requires expression cannot have an explicit object parameter}}5 6template<this auto> // expected-error {{expected template parameter}}7void f(); // expected-error {{no function template matches function template specialization 'f'}}8