| 1 |
// { dg-do compile } |
| 2 |
// { dg-options "-std=c++2a" } |
| 3 |
|
| 4 |
consteval int foo () { return 0; } |
| 5 |
int bar (int (*) ()); |
| 6 |
auto sz = sizeof (bar (foo)); // { dg-bogus "taking address of an immediate function" } |
| 7 |
decltype (bar (foo)) baz; // { dg-bogus "taking address of an immediate function" } |