]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc
thread: New.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 17_intro / headers / c++200x / all_multiple_inclusion.cc
1 // { dg-options "-std=gnu++0x" }
2 // { dg-do compile }
3
4 // Copyright (C) 2007, 2008 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 along
18 // with this library; see the file COPYING. If not, write to the Free
19 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20 // USA.
21
22 // 17.4.1.2 Headers
23
24 // "C" headers
25 #include <cassert>
26 #include <ccomplex>
27 #include <cctype>
28 #include <cerrno>
29 #include <cfenv>
30 #include <cfloat>
31 #include <cinttypes>
32 #include <ciso646>
33 #include <climits>
34 #include <clocale>
35 #include <cmath>
36 #include <csetjmp>
37 #include <csignal>
38 #include <cstdarg>
39 #include <cstdbool>
40 #include <cstddef>
41 #include <cstdint>
42 #include <cstdio>
43 #include <cstdlib>
44 #include <cstring>
45 #include <ctgmath>
46 #include <ctime>
47 #include <cwchar>
48 #include <cwctype>
49
50 // "C" compatibility headers
51 #include <assert.h>
52 #ifdef _GLIBCXX_HAVE_COMPLEX_H
53 #include <complex.h>
54 #endif
55 #include <ctype.h>
56 #include <errno.h>
57 #ifdef _GLIBCXX_HAVE_FENV_H
58 #include <fenv.h>
59 #endif
60 #include <float.h>
61 #ifdef _GLIBCXX_HAVE_INTTYPES_H
62 #include <inttypes.h>
63 #endif
64 #include <iso646.h>
65 #include <limits.h>
66 #include <locale.h>
67 #include <math.h>
68 #include <setjmp.h>
69 #include <signal.h>
70 #include <stdarg.h>
71 #ifdef _GLIBCXX_HAVE_STDBOOL_H
72 #include <stdbool.h>
73 #endif
74 #include <stddef.h>
75 #ifdef _GLIBCXX_HAVE_STDINT_H
76 #include <stdint.h>
77 #endif
78 #include <stdio.h>
79 #include <stdlib.h>
80 #include <string.h>
81 #ifdef _GLIBCXX_HAVE_TGMATH_H
82 #include <tgmath.h>
83 #endif
84 #include <time.h>
85 #ifdef _GLIBCXX_HAVE_WCHAR_H
86 #include <wchar.h>
87 #endif
88 #ifdef _GLIBCXX_HAVE_WCTYPE_H
89 #include <wctype.h>
90 #endif
91
92 // "C++" headers
93 #include <algorithm>
94 #include <array>
95 #include <bitset>
96 #include <chrono>
97 #include <complex>
98 #include <condition_variable>
99 #include <deque>
100 #include <exception>
101 #include <fstream>
102 #include <functional>
103 #include <iomanip>
104 #include <ios>
105 #include <iosfwd>
106 #include <iostream>
107 #include <istream>
108 #include <iterator>
109 #include <limits>
110 #include <list>
111 #include <locale>
112 #include <map>
113 #include <memory>
114 #include <mutex>
115 #include <new>
116 #include <numeric>
117 #include <ostream>
118 #include <queue>
119 #include <random>
120 #include <ratio>
121 #include <regex>
122 #include <set>
123 #include <sstream>
124 #include <stack>
125 #include <stdexcept>
126 #include <streambuf>
127 #include <string>
128 #include <thread>
129 #include <tuple>
130 #include <typeinfo>
131 #include <type_traits>
132 #include <unordered_map>
133 #include <unordered_set>
134 #include <utility>
135 #include <valarray>
136 #include <vector>
137
138
139 // "C" headers
140 #include <cassert>
141 #include <ccomplex>
142 #include <cctype>
143 #include <cerrno>
144 #include <cfenv>
145 #include <cfloat>
146 #include <cinttypes>
147 #include <ciso646>
148 #include <climits>
149 #include <clocale>
150 #include <cmath>
151 #include <csetjmp>
152 #include <csignal>
153 #include <cstdarg>
154 #include <cstdbool>
155 #include <cstddef>
156 #include <cstdint>
157 #include <cstdio>
158 #include <cstdlib>
159 #include <cstring>
160 #include <ctgmath>
161 #include <ctime>
162 #include <cwchar>
163 #include <cwctype>
164
165 // "C" compatibility headers
166 #include <assert.h>
167 #ifdef _GLIBCXX_HAVE_COMPLEX_H
168 #include <complex.h>
169 #endif
170 #include <ctype.h>
171 #include <errno.h>
172 #ifdef _GLIBCXX_HAVE_FENV_H
173 #include <fenv.h>
174 #endif
175 #include <float.h>
176 #ifdef _GLIBCXX_HAVE_INTTYPES_H
177 #include <inttypes.h>
178 #endif
179 #include <iso646.h>
180 #include <limits.h>
181 #include <locale.h>
182 #include <math.h>
183 #include <setjmp.h>
184 #include <signal.h>
185 #include <stdarg.h>
186 #ifdef _GLIBCXX_HAVE_STDBOOL_H
187 #include <stdbool.h>
188 #endif
189 #include <stddef.h>
190 #ifdef _GLIBCXX_HAVE_STDINT_H
191 #include <stdint.h>
192 #endif
193 #include <stdio.h>
194 #include <stdlib.h>
195 #include <string.h>
196 #ifdef _GLIBCXX_HAVE_TGMATH_H
197 #include <tgmath.h>
198 #endif
199 #include <time.h>
200 #ifdef _GLIBCXX_HAVE_WCHAR_H
201 #include <wchar.h>
202 #endif
203 #ifdef _GLIBCXX_HAVE_WCTYPE_H
204 #include <wctype.h>
205 #endif
206
207 // "C++" headers
208 #include <algorithm>
209 #include <array>
210 #include <bitset>
211 #include <chrono>
212 #include <complex>
213 #include <condition_variable>
214 #include <deque>
215 #include <exception>
216 #include <fstream>
217 #include <functional>
218 #include <iomanip>
219 #include <ios>
220 #include <iosfwd>
221 #include <iostream>
222 #include <istream>
223 #include <iterator>
224 #include <limits>
225 #include <list>
226 #include <locale>
227 #include <map>
228 #include <memory>
229 #include <mutex>
230 #include <new>
231 #include <numeric>
232 #include <ostream>
233 #include <queue>
234 #include <random>
235 #include <ratio>
236 #include <regex>
237 #include <set>
238 #include <sstream>
239 #include <stack>
240 #include <stdexcept>
241 #include <streambuf>
242 #include <string>
243 #include <thread>
244 #include <tuple>
245 #include <typeinfo>
246 #include <type_traits>
247 #include <unordered_map>
248 #include <unordered_set>
249 #include <utility>
250 #include <valarray>
251 #include <vector>