[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / req13.C
blob2f58742c532e65e54bf553128abd540d52060fb6
1 // PR c++/66758
2 // { dg-options "-std=c++17 -fconcepts" }
4 template <class T, class...Args>
5 concept bool Constructible =
6   requires(Args&&...args) {
7     T{ ((Args&&)(args))... };
8     new T{((Args&&)(args))...};
9   };
11 template <Constructible T> struct A { };
12 A<int> a;