Lines Matching +defs:test +defs:fn
129 void test() {
141 constexpr bool test(auto i) {
149 void test() {
150 static_assert(test(42));
188 consteval void test() {
249 void test() {
309 constexpr S test(auto) {
313 S s = test(0);
406 consteval S fn() { return S(5); }
409 constexpr int a = *fn().value;
410 constinit int b = *fn().value;
411 const int c = *fn().value;
412 int d = *fn().value;
414 constexpr int e = *fn().value + fn2(); // expected-error {{must be initialized by a constant expression}} \
415 // expected-error {{call to consteval function 'lvalue_to_rvalue_init_from_heap::fn' is not a constant expression}} \
419 int f = *fn().value + fn2(); // expected-error {{call to consteval function 'lvalue_to_rvalue_init_from_heap::fn' is not a constant expression}} \
466 GH94935::f(T::fn());
469 GH94935::undef(T::fn()); // expected-error {{call to consteval function 'GH94935::undef' is not a constant expression}} \
475 static consteval int fn() { return 0; }
480 void test() {
488 ::f(T::fn());
493 static int fn();
534 consteval void fn() {}
538 auto p = &fn; // expected-note {{'tfn<int>' is an immediate function because its body evaluates the address of a consteval function 'fn'}}