OSDN Git Service

2007-08-23 Benjamin Kosnik <bkoz@redhat.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_errno;
32   using std::address_family_not_supported;
33   using std::address_in_use;
34   using std::address_not_available;
35   using std::already_connected;
36   using std::argument_list_too_long;
37   using std::argument_out_of_domain;
38   using std:: bad_address;
39   using std::bad_file_descriptor;
40   using std::bad_message;
41   using std::broken_pipe;
42   using std::connection_aborted;
43   using std::connection_already_in_progress; 
44   using std::connection_refused; 
45   using std::connection_reset; 
46   using std::cross_device_link; 
47   using std::destination_address_required;
48   using std::device_or_resource_busy;
49   using std::directory_not_empty; 
50   using std::executable_format_error;
51   using std::file_exists;
52   using std::file_too_large;    
53   using std::filename_too_long;
54   using std::function_not_supported; 
55   using std::host_unreachable; 
56   using std::identifier_removed;
57   using std::illegal_byte_sequence; 
58   using std::inappropriate_io_control_operation; 
59   using std::interrupted; 
60   using std::invalid_argument;
61   using std::invalid_seek; 
62   using std::io_error; 
63   using std::is_a_directory; 
64   using std::message_size; 
65   using std::network_down; 
66   using std::network_reset;
67   using std::network_unreachable; 
68   using std::no_buffer_space; 
69   using std::no_child_process;
70   using std::no_link; 
71   using std::no_lock_available; 
72   using std::no_message_available; 
73   using std::no_message; 
74   using std::no_posix_equivalent; 
75   using std::no_protocol_option; 
76   using std::no_space_on_device;
77   using std::no_stream_resources; 
78   using std::no_such_device_or_address; 
79   using std::no_such_device;    
80   using std::no_such_file_or_directory; 
81   using std::no_such_process;   
82   using std::not_a_directory; 
83   using std::not_a_socket; 
84   using std::not_a_stream; 
85   using std::not_connected; 
86   using std::not_enough_memory;
87   using std::not_supported;
88   using std::operation_canceled;
89   using std::operation_in_progress;
90   using std::operation_not_permitted;
91   using std::operation_not_supported;
92   using std::operation_would_block;
93
94 #ifdef _GLIBCXX_HAVE_EOWNERDEAD
95   using std::owner_dead; 
96 #endif
97
98   using std::permission_denied;
99   using std::protocol_error; 
100   using std::protocol_not_supported;
101   using std::read_only_file_system; 
102   using std::resource_deadlock_would_occur;
103   using std::resource_unavailable_try_again; 
104   using std::result_out_of_range;
105
106 #ifdef _GLIBCXX_HAVE_ENOTRECOVERABLE
107   using std::state_not_recoverable; 
108 #endif
109
110   using std::stream_timeout; 
111   using std::text_file_busy; 
112   using std::timed_out; 
113   using std::too_many_files_open_in_system; 
114   using std::too_many_files_open; 
115   using std::too_many_links;    
116   using std::too_many_synbolic_link_levels; 
117   using std::value_too_large; 
118   using std::wrong_protocol_type;
119 }