testsuite: update mangling
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-requires7.C
blob8101d03100bdc690698cef73e82f16d08c6974ee
1 // PR c++/66758
2 // { dg-do compile { target c++20 } }
4 template <class T, class U>
5 concept C = requires (T t, U u) { t + u; };
7 template <class T, class U>
8   requires C<T,U>
9 void f(T t, U u) { t + u; }
11 struct non_addable { };
13 int main()
15   using T = decltype(f(42, 24));