]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/18_support/headers/cstdint/types_std_c++0x.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 18_support / headers / cstdint / types_std_c++0x.cc
1 // { dg-do compile }
2 // { dg-options "-std=gnu++11" }
3 // { dg-require-cstdint "" }
4
5 // Copyright (C) 2007-2016 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
19 // along with this library; see the file COPYING3. If not see
20 // <http://www.gnu.org/licenses/>.
21
22 #include <cstdint>
23
24 void test01()
25 {
26 typedef std::int8_t my_int8_t;
27 typedef std::int16_t my_int16_t;
28 typedef std::int32_t my_int32_t;
29 typedef std::int64_t my_int64_t;
30 typedef std::int_fast8_t my_int_fast8_t;
31 typedef std::int_fast16_t my_int_fast16_t;
32 typedef std::int_fast32_t my_int_fast32_t;
33 typedef std::int_fast64_t my_int_fast64_t;
34 typedef std::int_least8_t my_int_least8_t;
35 typedef std::int_least16_t my_int_least16_t;
36 typedef std::int_least32_t my_int_least32_t;
37 typedef std::int_least64_t my_int_least64_t;
38 typedef std::intmax_t my_intmax_t;
39 typedef std::intptr_t my_intptr_t;
40 typedef std::uint8_t my_uint8_t;
41 typedef std::uint16_t my_uint16_t;
42 typedef std::uint32_t my_uint32_t;
43 typedef std::uint64_t my_uint64_t;
44 typedef std::uint_fast8_t my_uint_fast8_t;
45 typedef std::uint_fast16_t my_uint_fast16_t;
46 typedef std::uint_fast32_t my_uint_fast32_t;
47 typedef std::uint_fast64_t my_uint_fast64_t;
48 typedef std::uint_least8_t my_uint_least8_t;
49 typedef std::uint_least16_t my_uint_least16_t;
50 typedef std::uint_least32_t my_uint_least32_t;
51 typedef std::uint_least64_t my_uint_least64_t;
52 typedef std::uintmax_t my_uintmax_t;
53 typedef std::uintptr_t my_uintptr_t;
54 }