Merge with trank @ 137446
[official-gcc.git] / libstdc++-v3 / testsuite / 17_intro / headers / all_c++200x_compatibility.cc
blob9ba46cf976cc8b42980c7a8a8016f61fedeb5b78
1 // { dg-do compile }
2 // { dg-options "-Wc++0x-compat -Werror" }
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.
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.
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.
22 // As a special exception, you may use this file as part of a free software
23 // library without restriction. Specifically, if other files instantiate
24 // templates or use macros or inline functions from this file, or you compile
25 // this file and link it with other files to produce an executable, this
26 // file does not by itself cause the resulting executable to be covered by
27 // the GNU General Public License. This exception does not however
28 // invalidate any other reasons why the executable file might be covered by
29 // the GNU General Public License.
31 // Make sure all the includes can be compiled with -Wc++0x-compat
32 // libstdc++/30571
34 // C
35 #include <cassert>
36 #include <cctype>
37 #include <cerrno>
38 #include <cfloat>
39 #include <ciso646>
40 #include <climits>
41 #include <clocale>
42 #include <cmath>
43 #include <csetjmp>
44 #include <csignal>
45 #include <cstdarg>
46 #include <cstddef>
47 #include <cstdio>
48 #include <cstdlib>
49 #include <cstring>
50 #include <ctime>
52 // C++
53 #include <algorithm>
54 #include <bitset>
55 #include <complex>
56 #include <deque>
57 #include <exception>
58 #include <fstream>
59 #include <functional>
60 #include <iomanip>
61 #include <ios>
62 #include <iosfwd>
63 #include <iostream>
64 #include <istream>
65 #include <iterator>
66 #include <limits>
67 #include <list>
68 #include <locale>
69 #include <map>
70 #include <memory>
71 #include <new>
72 #include <numeric>
73 #include <ostream>
74 #include <queue>
75 #include <set>
76 #include <sstream>
77 #include <stack>
78 #include <stdexcept>
79 #include <streambuf>
80 #include <string>
81 #include <typeinfo>
82 #include <utility>
83 #include <valarray>
84 #include <vector>
86 // TR1
87 #include <tr1/array>
88 #include <tr1/cctype>
89 #include <tr1/cfenv>
90 #include <tr1/cfloat>
91 #include <tr1/cinttypes>
92 #include <tr1/climits>
93 #include <tr1/cmath>
94 #include <tr1/complex>
95 #include <tr1/cstdarg>
96 #include <tr1/cstdbool>
97 #include <tr1/cstdint>
98 #include <tr1/cstdio>
99 #include <tr1/cstdlib>
100 #include <tr1/ctgmath>
101 #include <tr1/ctime>
102 #include <tr1/cwchar>
103 #include <tr1/cwctype>
104 #include <tr1/functional>
105 #include <tr1/random>
106 #include <tr1/tuple>
107 #include <tr1/unordered_map>
108 #include <tr1/unordered_set>
109 #include <tr1/utility>
111 // Extensions
112 #include <ext/algorithm>
113 #include <ext/array_allocator.h>
114 #include <ext/atomicity.h>
115 #include <ext/bitmap_allocator.h>
116 #if _GLIBCXX_HAVE_ICONV
117 #include <ext/codecvt_specializations.h>
118 #endif
119 #include <ext/concurrence.h>
120 #include <ext/debug_allocator.h>
121 #if _GLIBCXX_HAVE_ICONV
122 #include <ext/enc_filebuf.h>
123 #endif
124 #include <ext/functional>
125 #include <ext/iterator>
126 #include <ext/malloc_allocator.h>
127 #include <ext/memory>
128 #include <ext/mt_allocator.h>
129 #include <ext/new_allocator.h>
130 #include <ext/numeric>
131 #include <ext/pod_char_traits.h>
132 #include <ext/pool_allocator.h>
133 #include <ext/rb_tree>
134 #include <ext/rope>
135 #include <ext/slist>
136 #include <ext/stdio_filebuf.h>
137 #include <ext/stdio_sync_filebuf.h>
138 #include <ext/throw_allocator.h>
139 #include <ext/typelist.h>
140 #include <ext/type_traits.h>
141 #include <ext/vstring.h>
142 #include <ext/pb_ds/assoc_container.hpp>
143 #include <ext/pb_ds/priority_queue.hpp>
144 #include <ext/pb_ds/exception.hpp>
145 #include <ext/pb_ds/hash_policy.hpp>
146 #include <ext/pb_ds/list_update_policy.hpp>
147 #include <ext/pb_ds/tree_policy.hpp>
148 #include <ext/pb_ds/trie_policy.hpp>