1 // { dg-options "-std=gnu++0x" }
4 // Copyright (C) 2010 Free Software Foundation, Inc.
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)
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.
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/>.
23 typedef std::tuple<int> Tuple_1;
24 typedef std::tuple<int, int> Tuple_2;
25 typedef std::tuple<int, int, int> Tuple_3;
27 Tuple_1 A_1() { return Tuple_1(); }
28 const Tuple_1 B_1() { return Tuple_1(); }
30 Tuple_2 A_2() { return Tuple_2(); }
31 const Tuple_2 B_2() { return Tuple_2(); }
33 Tuple_3 A_3() { return Tuple_3(); }
34 const Tuple_3 B_3() { return Tuple_3(); }
36 Tuple_1 test_A_1(A_1());
37 Tuple_1 test_B_1(B_1());
39 Tuple_2 test_A_2(A_2());
40 Tuple_2 test_B_2(B_2());
42 Tuple_3 test_A_3(A_3());
43 Tuple_3 test_B_3(B_3());