]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/17_intro/headers/c++2011/stdc++_multiple_inclusion.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 17_intro / headers / c++2011 / stdc++_multiple_inclusion.cc
1 // FreeBSD wants warning clean system headers:
2 // { dg-options "-std=gnu++11" }
3 // { dg-additional-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
4 // { dg-do compile }
5
6 // Copyright (C) 2007-2020 Free Software Foundation, Inc.
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 // 17.4.1.2 Headers
24
25 #include <bits/stdc++.h>
26
27 // "C" compatibility headers
28 #include <assert.h>
29 #ifdef _GLIBCXX_HAVE_COMPLEX_H
30 #include <complex.h>
31 #endif
32 #include <ctype.h>
33 #include <errno.h>
34 #ifdef _GLIBCXX_HAVE_FENV_H
35 #include <fenv.h>
36 #endif
37 #include <float.h>
38 #ifdef _GLIBCXX_HAVE_INTTYPES_H
39 #include <inttypes.h>
40 #endif
41 #include <iso646.h>
42 #include <limits.h>
43 #include <locale.h>
44 #include <math.h>
45 #include <setjmp.h>
46 #include <signal.h>
47 #include <stdarg.h>
48 #ifdef _GLIBCXX_HAVE_STDBOOL_H
49 #include <stdbool.h>
50 #endif
51 #include <stddef.h>
52 #ifdef _GLIBCXX_HAVE_STDINT_H
53 #include <stdint.h>
54 #endif
55 #include <stdio.h>
56 #include <stdlib.h>
57 #include <string.h>
58 #ifdef _GLIBCXX_HAVE_TGMATH_H
59 #include <tgmath.h>
60 #endif
61 #include <time.h>
62 #if __has_include(<uchar.h>)
63 #include <uchar.h>
64 #endif
65 #ifdef _GLIBCXX_HAVE_WCHAR_H
66 #include <wchar.h>
67 #endif
68 #ifdef _GLIBCXX_HAVE_WCTYPE_H
69 #include <wctype.h>
70 #endif
71
72 #include <bits/stdc++.h>
73
74 // "C" compatibility headers
75 #include <assert.h>
76 #ifdef _GLIBCXX_HAVE_COMPLEX_H
77 #include <complex.h>
78 #endif
79 #include <ctype.h>
80 #include <errno.h>
81 #ifdef _GLIBCXX_HAVE_FENV_H
82 #include <fenv.h>
83 #endif
84 #include <float.h>
85 #ifdef _GLIBCXX_HAVE_INTTYPES_H
86 #include <inttypes.h>
87 #endif
88 #include <iso646.h>
89 #include <limits.h>
90 #include <locale.h>
91 #include <math.h>
92 #include <setjmp.h>
93 #include <signal.h>
94 #include <stdarg.h>
95 #ifdef _GLIBCXX_HAVE_STDBOOL_H
96 #include <stdbool.h>
97 #endif
98 #include <stddef.h>
99 #ifdef _GLIBCXX_HAVE_STDINT_H
100 #include <stdint.h>
101 #endif
102 #include <stdio.h>
103 #include <stdlib.h>
104 #include <string.h>
105 #ifdef _GLIBCXX_HAVE_TGMATH_H
106 #include <tgmath.h>
107 #endif
108 #include <time.h>
109 #if __has_include(<uchar.h>)
110 #include <uchar.h>
111 #endif
112 #ifdef _GLIBCXX_HAVE_WCHAR_H
113 #include <wchar.h>
114 #endif
115 #ifdef _GLIBCXX_HAVE_WCTYPE_H
116 #include <wctype.h>
117 #endif