Lines Matching refs:consteval
7 consteval int f1(int i) { in f1()
11 consteval constexpr int f2(int i) { in f2()
16 constexpr auto l_eval = [](int i) consteval { in __anon616f5e1d0102()
22 constexpr consteval int f3(int i) { in f3()
28 consteval int f1(int i) const { in f1()
32 consteval A(int i);
33 consteval A() = default;
34 consteval ~A() = default; // expected-error {{destructor cannot be declared consteval}}
37 consteval struct B {}; // expected-error {{struct cannot be marked consteval}}
39 consteval typedef B b; // expected-error {{typedef cannot be consteval}}
41 consteval int redecl() {return 0;} // expected-note {{previous declaration is here}} in redecl()
44 consteval int i = 0; // expected-error {{consteval can only be used in function declarations}}
46 consteval int; // expected-error {{consteval can only be used in function declarations}}
48 consteval int f1() {} // expected-error {{no return statement in consteval function}} in f1()
57 consteval D() = default; // expected-error {{cannot be consteval}}
58 consteval ~D() = default; // expected-error {{destructor cannot be declared consteval}}
62 consteval ~E() {} // expected-error {{cannot be declared consteval}} in ~E()
66 consteval int main() { // expected-error {{'main' is not allowed to be declared consteval}} in main()
70 consteval int f_eval(int i) { in f_eval()
92 consteval int f(int i) { in f()
110 consteval void *operator new(size_t count);
112 consteval void *operator new[](size_t count);
114 consteval void operator delete(void* ptr);
116 consteval void operator delete[](void* ptr);
118 consteval ~A() {} in ~A()
125 consteval int f() { in f()
129 consteval int f1(...) { in f1()
137 consteval auto operator+ (E, int(*a)()) { in operator +()
145 auto l0 = [](auto) consteval { in __anon616f5e1d0202()
161 consteval int operator"" _test(unsigned long long i) { in operator ""_test()
171 consteval auto operator"" _test1(unsigned long long i) { in operator ""_test1()
182 consteval int f() { in f()
187 consteval int(*ret1(int i))() { in ret1()
196 consteval int f(int) { in f()
211 consteval mem_ptr_type ret2() { in ret2()
226 consteval int f(int) { in f()
245 consteval int f_eval(int i) { in f_eval()
249 auto l0 = [](int i) consteval { in __anon616f5e1d0302()
279 consteval int ret_i() const { return 0; } in ret_i()
280 consteval A ret_a() const { return A{}; } in ret_a()
284 consteval int by_value_a(A a) { return a.ret_i(); } in by_value_a()
286 consteval int const_a_ref(const A &a) { in const_a_ref()
290 consteval int rvalue_ref(const A &&a) { in rvalue_ref()
294 consteval const A &to_lvalue_ref(const A &&a) { in to_lvalue_ref()
325 consteval int f() { in f()
336 consteval int ret_i() const { return p ? *p : 0; } in ret_i()
337 consteval A ret_a() const { return A{}; } in ret_a()
341 consteval int by_value_a(A a) { return a.ret_i(); } in by_value_a()
343 consteval int const_a_ref(const A &a) { in const_a_ref()
347 consteval int rvalue_ref(const A &&a) { in rvalue_ref()
351 consteval const A &to_lvalue_ref(const A &&a) { in to_lvalue_ref()
405 consteval S f(int i) { in f()
418 consteval S1(int i) : ptr(this) { in S1()
435 consteval int f_eval() { // expected-note+ {{declared here}} in f_eval()
452 virtual consteval void f(); // expected-note {{overridden}}
456 consteval void f();
461 …consteval void g(); // expected-error {{consteval function 'g' cannot override a non-consteval fun…
469 virtual consteval bool operator==(const Y&) const; // expected-note {{here}}
485 consteval std::strong_ordering operator<=>(const Y&) const = default;
493 friend consteval int operator<=>(const A&, const A&) { return 0; } in operator <=>()
502 …friend consteval int operator<=>(const B &l, const B &r) { return r.n - l.n; } // expected-note {{… in operator <=>()
512 consteval A(int(*p)() = nullptr) : ptr(p) {} in A()
518 consteval B(int(*p)(), int) : ptr(p) {} in B()
560 consteval int f_eval() { // expected-note+ {{declared here}} in f_eval()
567 consteval Copy(const Copy&) = default;
616 auto consteval g(auto a) { in g()
630 consteval int foo(int x) { in foo()
658 consteval int foo() { return 1; } in foo()
659 consteval int bar(int i = foo()) { return i * i; } in bar()
683 consteval int operator[](int i) const { return {}; } in operator []()
684 consteval const derp * operator->() const { return &d; } in operator ->()
685 consteval int f() const { return 12; } // expected-note 2{{declared here}} in f()
707 consteval int d() { in d()
712 consteval int a() const { return 1; } in a()
729 consteval S() {} in S()
738 consteval T() {} in T()
749 inline consteval unsigned char operator""_UC(const unsigned long long n) { in operator ""_UC()
780 consteval auto pop_front(list_t<T, Ts...>) -> auto { in pop_front()
785 consteval auto apply(list_t<Ts...>, F fn) -> auto { in apply()
795 consteval bool zero() { return false; } in zero()
798 consteval bool foo(bool, F f) { in foo()
809 consteval auto bar(F f) { return f;} in bar()
821 constexpr auto t4 = bar(bar([x=bar(42)]() consteval { return x; }))(); in test3()
830 []() consteval { int i{}; }(); in f()
831 []() consteval { int i{}; ++i; }(); in f()
834 (void)[](int i) consteval { return i; }(0); in g()
835 (void)[](int i) consteval { return i; }(0); in g()