Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/variadic-init2.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 // { dg-do compile { target c++11 } } |
2 | |
3 struct MoveOnly { | |
4 MoveOnly() = default; | |
5 MoveOnly(MoveOnly const&) = delete; | |
6 MoveOnly(MoveOnly&&) = default; | |
7 }; | |
8 | |
9 struct StoresMoveOnly { | |
10 StoresMoveOnly() {} | |
11 ~StoresMoveOnly() = default; | |
12 | |
13 MoveOnly value; | |
14 }; | |
15 | |
16 template <class ...Args> void test(Args... args) { | |
17 StoresMoveOnly s(args...); | |
18 } | |
19 | |
20 int main() { test(); } |