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