OSDN Git Service

2008-02-25 Jan Beulich <jbeulich@novell.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 19_diagnostics / headers / system_error / types_std_c++0x.cc
1 // { dg-options "-std=gnu++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 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 #include <system_error>
23
24 namespace gnu
25 {
26   using std::system_error;
27   using std::error_code;
28   using std::error_category;
29   using std::system_category;
30
31   using std::posix_error::posix_errno;
32   using std::posix_error::address_family_not_supported;
33   using std::posix_error::address_in_use;
34   using std::posix_error::address_not_available;
35   using std::posix_error::already_connected;
36   using std::posix_error::argument_list_too_long;
37   using std::posix_error::argument_out_of_domain;
38   using std::posix_error::bad_address;
39   using std::posix_error::bad_file_descriptor;
40
41 #ifdef _GLIBCXX_HAVE_EBADMSG
42   using std::posix_error::bad_message;
43 #endif
44
45   using std::posix_error::broken_pipe;
46   using std::posix_error::connection_aborted;
47   using std::posix_error::connection_already_in_progress; 
48   using std::posix_error::connection_refused; 
49   using std::posix_error::connection_reset; 
50   using std::posix_error::cross_device_link; 
51   using std::posix_error::destination_address_required;
52   using std::posix_error::device_or_resource_busy;
53   using std::posix_error::directory_not_empty; 
54   using std::posix_error::executable_format_error;
55   using std::posix_error::file_exists;
56   using std::posix_error::file_too_large;       
57   using std::posix_error::filename_too_long;
58   using std::posix_error::function_not_supported; 
59   using std::posix_error::host_unreachable; 
60
61 #ifdef _GLIBCXX_HAVE_EIDRM
62   using std::posix_error::identifier_removed;
63 #endif
64
65   using std::posix_error::illegal_byte_sequence; 
66   using std::posix_error::inappropriate_io_control_operation; 
67   using std::posix_error::interrupted; 
68   using std::posix_error::invalid_argument;
69   using std::posix_error::invalid_seek; 
70   using std::posix_error::io_error; 
71   using std::posix_error::is_a_directory; 
72   using std::posix_error::message_size; 
73   using std::posix_error::network_down; 
74   using std::posix_error::network_reset;
75   using std::posix_error::network_unreachable; 
76   using std::posix_error::no_buffer_space; 
77   using std::posix_error::no_child_process;
78
79 #ifdef _GLIBCXX_HAVE_ENOLINK
80   using std::posix_error::no_link; 
81 #endif
82
83   using std::posix_error::no_lock_available; 
84
85 #ifdef _GLIBCXX_HAVE_ENODATA
86   using std::posix_error::no_message_available; 
87 #endif
88
89   using std::posix_error::no_message; 
90   using std::posix_error::no_posix_equivalent; 
91   using std::posix_error::no_protocol_option; 
92   using std::posix_error::no_space_on_device;
93
94 #ifdef _GLIBCXX_HAVE_ENOSR
95   using std::posix_error::no_stream_resources; 
96 #endif
97
98   using std::posix_error::no_such_device_or_address; 
99   using std::posix_error::no_such_device;       
100   using std::posix_error::no_such_file_or_directory; 
101   using std::posix_error::no_such_process;      
102   using std::posix_error::not_a_directory; 
103   using std::posix_error::not_a_socket; 
104
105 #ifdef _GLIBCXX_HAVE_ENOSTR
106   using std::posix_error::not_a_stream; 
107 #endif
108
109   using std::posix_error::not_connected; 
110   using std::posix_error::not_enough_memory;
111   using std::posix_error::not_supported;
112
113 #ifdef _GLIBCXX_HAVE_ECANCELED
114   using std::posix_error::operation_canceled;
115 #endif
116
117   using std::posix_error::operation_in_progress;
118   using std::posix_error::operation_not_permitted;
119   using std::posix_error::operation_not_supported;
120   using std::posix_error::operation_would_block;
121
122 #ifdef _GLIBCXX_HAVE_EOWNERDEAD
123   using std::posix_error::owner_dead; 
124 #endif
125
126   using std::posix_error::permission_denied;
127
128 #ifdef _GLIBCXX_HAVE_EPROTO
129   using std::posix_error::protocol_error; 
130 #endif
131
132   using std::posix_error::protocol_not_supported;
133   using std::posix_error::read_only_file_system; 
134   using std::posix_error::resource_deadlock_would_occur;
135   using std::posix_error::resource_unavailable_try_again; 
136   using std::posix_error::result_out_of_range;
137
138 #ifdef _GLIBCXX_HAVE_ENOTRECOVERABLE
139   using std::posix_error::state_not_recoverable; 
140 #endif
141
142 #ifdef _GLIBCXX_HAVE_ETIME
143   using std::posix_error::stream_timeout; 
144 #endif
145
146 #ifdef _GLIBCXX_HAVE_ETXTBSY
147   using std::posix_error::text_file_busy; 
148 #endif
149
150   using std::posix_error::timed_out; 
151   using std::posix_error::too_many_files_open_in_system; 
152   using std::posix_error::too_many_files_open; 
153   using std::posix_error::too_many_links;       
154   using std::posix_error::too_many_synbolic_link_levels; 
155
156 #ifdef _GLIBCXX_HAVE_EOVERFLOW
157   using std::posix_error::value_too_large; 
158 #endif
159
160   using std::posix_error::wrong_protocol_type;
161 }