Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/concepts/req13.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/66758 |
131 | 2 // { dg-do compile { target c++17 } } |
3 // { dg-options "-fconcepts" } | |
111 | 4 |
5 template <class T, class...Args> | |
6 concept bool Constructible = | |
7 requires(Args&&...args) { | |
8 T{ ((Args&&)(args))... }; | |
9 new T{((Args&&)(args))...}; | |
10 }; | |
11 | |
12 template <Constructible T> struct A { }; | |
13 A<int> a; | |
14 |