]> git.ipfire.org Git - thirdparty/gcc.git/blame - 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
CommitLineData
52066eae 1// { dg-do compile { target c++11 } }
f2752f1d 2// { dg-require-cstdint "" }
af13a7a6 3
cbe34bb5 4// Copyright (C) 2007-2017 Free Software Foundation, Inc.
af13a7a6
BK
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
748086b7 9// Free Software Foundation; either version 3, or (at your option)
af13a7a6
BK
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
748086b7
JJ
18// along with this library; see the file COPYING3. If not see
19// <http://www.gnu.org/licenses/>.
af13a7a6
BK
20
21#include <cstdint>
22
23void test01()
24{
af13a7a6
BK
25 typedef std::int8_t my_int8_t;
26 typedef std::int16_t my_int16_t;
27 typedef std::int32_t my_int32_t;
28 typedef std::int64_t my_int64_t;
29 typedef std::int_fast8_t my_int_fast8_t;
30 typedef std::int_fast16_t my_int_fast16_t;
31 typedef std::int_fast32_t my_int_fast32_t;
32 typedef std::int_fast64_t my_int_fast64_t;
33 typedef std::int_least8_t my_int_least8_t;
34 typedef std::int_least16_t my_int_least16_t;
35 typedef std::int_least32_t my_int_least32_t;
36 typedef std::int_least64_t my_int_least64_t;
37 typedef std::intmax_t my_intmax_t;
38 typedef std::intptr_t my_intptr_t;
39 typedef std::uint8_t my_uint8_t;
40 typedef std::uint16_t my_uint16_t;
41 typedef std::uint32_t my_uint32_t;
42 typedef std::uint64_t my_uint64_t;
43 typedef std::uint_fast8_t my_uint_fast8_t;
44 typedef std::uint_fast16_t my_uint_fast16_t;
45 typedef std::uint_fast32_t my_uint_fast32_t;
46 typedef std::uint_fast64_t my_uint_fast64_t;
47 typedef std::uint_least8_t my_uint_least8_t;
48 typedef std::uint_least16_t my_uint_least16_t;
49 typedef std::uint_least32_t my_uint_least32_t;
50 typedef std::uint_least64_t my_uint_least64_t;
51 typedef std::uintmax_t my_uintmax_t;
52 typedef std::uintptr_t my_uintptr_t;
af13a7a6 53}