]>
Commit | Line | Data |
---|---|---|
0a5c2065 PC |
1 | // { dg-options "-std=gnu++0x" } |
2 | // { dg-do compile } | |
3 | ||
405feeb8 | 4 | // Copyright (C) 2010-2013 Free Software Foundation, Inc. |
0a5c2065 PC |
5 | // |
6 | // This file is part of the GNU ISO C++ Library. This library is free | |
7 | // software; you can redistribute it and/or modify it under the | |
8 | // terms of the GNU General Public License as published by the | |
9 | // Free Software Foundation; either version 3, or (at your option) | |
10 | // any later version. | |
11 | ||
12 | // This library is distributed in the hope that it will be useful, | |
13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | // GNU General Public License for more details. | |
16 | ||
17 | // You should have received a copy of the GNU General Public License along | |
18 | // with this library; see the file COPYING3. If not see | |
19 | // <http://www.gnu.org/licenses/>. | |
20 | ||
21 | #include <tuple> | |
22 | ||
23 | typedef std::tuple<int> Tuple_1; | |
24 | typedef std::tuple<int, int> Tuple_2; | |
25 | typedef std::tuple<int, int, int> Tuple_3; | |
26 | ||
27 | Tuple_1 A_1() { return Tuple_1(); } | |
28 | const Tuple_1 B_1() { return Tuple_1(); } | |
29 | ||
30 | Tuple_2 A_2() { return Tuple_2(); } | |
31 | const Tuple_2 B_2() { return Tuple_2(); } | |
32 | ||
33 | Tuple_3 A_3() { return Tuple_3(); } | |
34 | const Tuple_3 B_3() { return Tuple_3(); } | |
35 | ||
36 | Tuple_1 test_A_1(A_1()); | |
37 | Tuple_1 test_B_1(B_1()); | |
38 | ||
39 | Tuple_2 test_A_2(A_2()); | |
40 | Tuple_2 test_B_2(B_2()); | |
41 | ||
42 | Tuple_3 test_A_3(A_3()); | |
43 | Tuple_3 test_B_3(B_3()); |