testsuite: update mangling
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / consteval25.C
blob80b76a474cbd9eab1777f8936794b042d074127f
1 // PR c++/102753
2 // { dg-do compile { target c++20 } }
3 // { dg-options "" }
5 consteval int foo () { return 42; }
7 consteval int
8 bar (int (*fn) ())
10   return fn ();
13 void
14 baz ()
16   static_assert (bar (({ constexpr auto a = 1; foo; })) == 42);