testsuite: update mangling
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-class4.C
blob90395f110256a180f55332d2b4b9b94f88912583
1 // PR c++/103341
2 // { dg-do compile { target c++20 } }
4 template<class T, class U> concept same_as = __is_same(T, U);
5 template<class T>
6 struct A {
7   static inline same_as<T> auto value = 0; // { dg-error "constraint" }
8 };
10 template struct A<int>; // { dg-bogus "" }
11 template struct A<bool>; // { dg-message "required from here" }