]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc
1 // FreeBSD wants warning clean system headers:
2 // { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
3 // { dg-options "-std=gnu++14" }
6 // Copyright (C) 2015-2016 Free Software Foundation, Inc.
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)
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.
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/>.
25 #include <bits/stdc++.h>
27 // "C" compatibility headers
29 #ifdef _GLIBCXX_HAVE_COMPLEX_H
34 #ifdef _GLIBCXX_HAVE_FENV_H
38 #ifdef _GLIBCXX_HAVE_INTTYPES_H
48 #ifdef _GLIBCXX_HAVE_STDBOOL_H
52 #ifdef _GLIBCXX_HAVE_STDINT_H
58 #ifdef _GLIBCXX_HAVE_TGMATH_H
62 #if __has_include(<uchar.h>)
65 #ifdef _GLIBCXX_HAVE_WCHAR_H
68 #ifdef _GLIBCXX_HAVE_WCTYPE_H
72 #include <bits/stdc++.h>
74 // "C" compatibility headers
76 #ifdef _GLIBCXX_HAVE_COMPLEX_H
81 #ifdef _GLIBCXX_HAVE_FENV_H
85 #ifdef _GLIBCXX_HAVE_INTTYPES_H
95 #ifdef _GLIBCXX_HAVE_STDBOOL_H
99 #ifdef _GLIBCXX_HAVE_STDINT_H
105 #ifdef _GLIBCXX_HAVE_TGMATH_H
109 #if __has_include(<uchar.h>)
112 #ifdef _GLIBCXX_HAVE_WCHAR_H
115 #ifdef _GLIBCXX_HAVE_WCTYPE_H