]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/20_util/reference_wrapper/typedefs-2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / reference_wrapper / typedefs-2.cc
1 // { dg-do compile { target c++11 } }
2
3 // 2010-10-06 Paolo Carlini <paolo.carlini@oracle.com>
4
5 // Copyright (C) 2010-2019 Free Software Foundation, Inc.
6 //
7 // This file is part of the GNU ISO C++ Library. This library is free
8 // software; you can redistribute it and/or modify it under the
9 // terms of the GNU General Public License as published by the
10 // Free Software Foundation; either version 3, or (at your option)
11 // any later version.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License along
19 // with this library; see the file COPYING3. If not see
20 // <http://www.gnu.org/licenses/>.
21
22 #include <functional>
23
24 using namespace std;
25
26 reference_wrapper<int(float)>::argument_type i01;
27 // reference_wrapper<int(float) const>::argument_type i02;
28 // reference_wrapper<int(float) volatile>::argument_type i03;
29 // reference_wrapper<int(float) const volatile>::argument_type i04;
30 reference_wrapper<int(float)>::result_type i05;
31 // reference_wrapper<int(float) const>::result_type i06;
32 // reference_wrapper<int(float) volatile>::result_type i07;
33 // reference_wrapper<int(float) const volatile>::result_type i08;
34
35 reference_wrapper<int(*)(float)>::argument_type i09;
36 reference_wrapper<int(* const)(float)>::argument_type i10;
37 reference_wrapper<int(* volatile)(float)>::argument_type i11;
38 reference_wrapper<int(* const volatile)(float)>::argument_type i12;
39 reference_wrapper<int(*)(float)>::result_type i13;
40 reference_wrapper<int(* const)(float)>::result_type i14;
41 reference_wrapper<int(* volatile)(float)>::result_type i15;
42 reference_wrapper<int(* const volatile)(float)>::result_type i16;
43
44 reference_wrapper<int(float, char)>::first_argument_type i17;
45 // reference_wrapper<int(float, char) const>::first_argument_type i18;
46 // reference_wrapper<int(float, char) volatile>::first_argument_type i19;
47 // reference_wrapper<int(float, char) const volatile>::first_argument_type i20;
48 reference_wrapper<int(float, char)>::second_argument_type i21;
49 // reference_wrapper<int(float, char) const>::second_argument_type i22;
50 // reference_wrapper<int(float, char) volatile>::second_argument_type i23;
51 // reference_wrapper<int(float, char) const volatile>::second_argument_type i24;
52 reference_wrapper<int(float, char)>::result_type i25;
53 // reference_wrapper<int(float, char) const>::result_type i26;
54 // reference_wrapper<int(float, char) volatile>::result_type i27;
55 // reference_wrapper<int(float, char) const volatile>::result_type i28;
56
57 reference_wrapper<int(*)(float, char)>::first_argument_type i29;
58 reference_wrapper<int(* const)(float, char)>::first_argument_type i30;
59 reference_wrapper<int(* volatile)(float, char)>::first_argument_type i31;
60 reference_wrapper<int(* const volatile)(float, char)>::first_argument_type i32;
61 reference_wrapper<int(*)(float, char)>::second_argument_type i33;
62 reference_wrapper<int(* const)(float, char)>::second_argument_type i34;
63 reference_wrapper<int(* volatile)(float, char)>::second_argument_type i35;
64 reference_wrapper<int(*const volatile)(float, char)>::second_argument_type i36;
65 reference_wrapper<int(*)(float, char)>::result_type i37;
66 reference_wrapper<int(* const)(float, char)>::result_type i38;
67 reference_wrapper<int(* volatile)(float, char)>::result_type i39;
68 reference_wrapper<int(* const volatile)(float, char)>::result_type i40;