Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: gcc/libstdc++-v3/testsuite/27_io/objects/wchar_t/1.cc

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // 2003-05-01 Petur Runolfsson <peturr02@ru.is>
2
3 // Copyright (C) 2000, 2003, 2009 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 3, or (at your option)
9 // any later version.
10
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING3. If not see
18 // <http://www.gnu.org/licenses/>.
19
20 // Include all the headers except for iostream.
21 #include <algorithm>
22 #include <bitset>
23 #include <complex>
24 #include <deque>
25 #include <exception>
26 #include <fstream>
27 #include <functional>
28 #include <iomanip>
29 #include <ios>
30 #include <iosfwd>
31 #include <istream>
32 #include <iterator>
33 #include <limits>
34 #include <list>
35 #include <locale>
36 #include <map>
37 #include <memory>
38 #include <new>
39 #include <numeric>
40 #include <ostream>
41 #include <queue>
42 #include <set>
43 #include <sstream>
44 #include <stack>
45 #include <stdexcept>
46 #include <streambuf>
47 #include <string>
48 #include <typeinfo>
49 #include <utility>
50 #include <valarray>
51 #include <vector>
52 #include <cassert>
53 #include <cctype>
54 #include <cerrno>
55 #include <cfloat>
56 #include <ciso646>
57 #include <climits>
58 #include <clocale>
59 #include <cmath>
60 #include <csetjmp>
61 #include <csignal>
62 #include <cstdarg>
63 #include <cstddef>
64 #include <cstdio>
65 #include <cstdlib>
66 #include <cstring>
67 #include <ctime>
68 #include <cwchar>
69 #include <cwctype>
70 #include <testsuite_hooks.h>
71
72 // Include iostream last, just to make is as difficult as possible to
73 // properly initialize the standard iostream objects.
74 #include <iostream>
75
76 // Make sure all the standard streams are defined.
77 void
78 test01()
79 {
80 bool test __attribute__((unused)) = true;
81
82 wchar_t array2[20];
83 typedef std::wios::traits_type wtraits_type;
84 wtraits_type::int_type wi = 15;
85 wtraits_type::copy(array2, L"testing istream", wi);
86 std::wcout << L"testing wcout" << std::endl;
87 std::wcerr << L"testing wcerr" << std::endl;
88 VERIFY( std::wcerr.flags() & std::ios_base::unitbuf );
89 std::wclog << L"testing wclog" << std::endl;
90 // std::wcin >> array2; // requires somebody to type something in.
91 VERIFY( std::wcin.tie() == &std::wcout );
92 }
93
94
95 int
96 main()
97 {
98 test01();
99 return 0;
100 }
OLDNEW
« no previous file with comments | « gcc/libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc ('k') | gcc/libstdc++-v3/testsuite/27_io/objects/wchar_t/12.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698