]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/20_util/tuple/cons/45228.cc
Update copyright years in libstdc++-v3/
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / tuple / cons / 45228.cc
CommitLineData
0a5c2065
PC
1// { dg-options "-std=gnu++0x" }
2// { dg-do compile }
3
aa118a03 4// Copyright (C) 2010-2014 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
23typedef std::tuple<int> Tuple_1;
24typedef std::tuple<int, int> Tuple_2;
25typedef std::tuple<int, int, int> Tuple_3;
26
27 Tuple_1 A_1() { return Tuple_1(); }
28const Tuple_1 B_1() { return Tuple_1(); }
29
30 Tuple_2 A_2() { return Tuple_2(); }
31const Tuple_2 B_2() { return Tuple_2(); }
32
33 Tuple_3 A_3() { return Tuple_3(); }
34const Tuple_3 B_3() { return Tuple_3(); }
35
36Tuple_1 test_A_1(A_1());
37Tuple_1 test_B_1(B_1());
38
39Tuple_2 test_A_2(A_2());
40Tuple_2 test_B_2(B_2());
41
42Tuple_3 test_A_3(A_3());
43Tuple_3 test_B_3(B_3());