]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/18_support/headers/cstdint/types_std_c++0x.cc
acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 18_support / headers / cstdint / types_std_c++0x.cc
CommitLineData
af13a7a6
BK
1// { dg-options "-std=c++0x" }
2// { dg-do compile }
3
4// Copyright (C) 2007 Free Software Foundation, Inc.
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
9// Free Software Foundation; either version 2, or (at your option)
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
18// along with this library; see the file COPYING. If not, write to
19// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20// Boston, MA 02110-1301, USA.
21
22#include <cstdint>
23
24void test01()
25{
26#if _GLIBCXX_USE_C99_STDINT_TR1
27
28 typedef std::int8_t my_int8_t;
29 typedef std::int16_t my_int16_t;
30 typedef std::int32_t my_int32_t;
31 typedef std::int64_t my_int64_t;
32 typedef std::int_fast8_t my_int_fast8_t;
33 typedef std::int_fast16_t my_int_fast16_t;
34 typedef std::int_fast32_t my_int_fast32_t;
35 typedef std::int_fast64_t my_int_fast64_t;
36 typedef std::int_least8_t my_int_least8_t;
37 typedef std::int_least16_t my_int_least16_t;
38 typedef std::int_least32_t my_int_least32_t;
39 typedef std::int_least64_t my_int_least64_t;
40 typedef std::intmax_t my_intmax_t;
41 typedef std::intptr_t my_intptr_t;
42 typedef std::uint8_t my_uint8_t;
43 typedef std::uint16_t my_uint16_t;
44 typedef std::uint32_t my_uint32_t;
45 typedef std::uint64_t my_uint64_t;
46 typedef std::uint_fast8_t my_uint_fast8_t;
47 typedef std::uint_fast16_t my_uint_fast16_t;
48 typedef std::uint_fast32_t my_uint_fast32_t;
49 typedef std::uint_fast64_t my_uint_fast64_t;
50 typedef std::uint_least8_t my_uint_least8_t;
51 typedef std::uint_least16_t my_uint_least16_t;
52 typedef std::uint_least32_t my_uint_least32_t;
53 typedef std::uint_least64_t my_uint_least64_t;
54 typedef std::uintmax_t my_uintmax_t;
55 typedef std::uintptr_t my_uintptr_t;
56
57#endif
58}