testsuite: update mangling
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / consteval31.C
blob85a4d1794e511fc83e8e663d35f2445c3d868969
1 // PR c++/105912
2 // { dg-do compile { target c++20 } }
4 struct A {
5   consteval A operator+() {
6     return {};
7   }
8 };
10 consteval A operator~(A) {
11   return {};
14 consteval A operator+(A, A) {
15   return {};
18 template<class>
19 void f() {
20   A a;
21   ~a;
22   a + a;
23   +a;
26 template void f<int>();