testsuite: update mangling
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / nodiscard1.C
blobc3c5094b619b58793d40669f2b189bf585120082
1 // PR c++/105143
2 // { dg-do compile { target c++20 } }
3 // We used to crash here with "Error reporting routines re-entered".
5 template<class...> struct A { };
7 template<A V> using type = int;
9 template<A V> [[nodiscard]] type<V> get();
11 int main() {
12   get<{}>(); // { dg-warning "nodiscard" }