aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/req13.C
blob: 2f58742c532e65e54bf553128abd540d52060fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/66758
// { dg-options "-std=c++17 -fconcepts" }

template <class T, class...Args>
concept bool Constructible =
  requires(Args&&...args) {
    T{ ((Args&&)(args))... };
    new T{((Args&&)(args))...};
  };

template <Constructible T> struct A { };
A<int> a;