Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libstdc++-v3 / testsuite / 27_io / basic_ostream / inserters_character / wchar_t / 1.cc
blobaa145d3d0724f9524bd43aaf6b3ecbef84ac05c4
1 // Copyright (C) 2005 Free Software Foundation
2 //
3 // This file is part of the GNU ISO C++ Library. This library is free
4 // software; you can redistribute it and/or modify it under the
5 // terms of the GNU General Public License as published by the
6 // Free Software Foundation; either version 2, or (at your option)
7 // any later version.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License along
15 // with this library; see the file COPYING. If not, write to the Free
16 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17 // USA.
19 // 27.6.2.5.4 basic_ostream character inserters
21 #include <string>
22 #include <ostream>
23 #include <fstream>
24 #include <testsuite_hooks.h>
26 // ofstream
27 void test01()
29 std::wstring str01;
30 const int size = 1000;
31 const char name_02[] = "wostream_inserter_char-1.txt";
33 // initialize string
34 for(int i=0 ; i < size; i++) {
35 str01 += L'1';
36 str01 += L'2';
37 str01 += L'3';
38 str01 += L'4';
39 str01 += L'5';
40 str01 += L'6';
41 str01 += L'7';
42 str01 += L'8';
43 str01 += L'9';
44 str01 += L'\n';
46 std::wofstream f(name_02);
48 f << str01;
49 f.close();
52 int main()
54 test01();
55 return 0;