]>
Commit | Line | Data |
---|---|---|
23cac885 BK |
1 | // 981208 bkoz test functionality of basic_stringbuf for char_type == char |
2 | ||
748086b7 | 3 | // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2009 |
23cac885 | 4 | // Free Software Foundation, Inc. |
92204597 BK |
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 | |
748086b7 | 9 | // Free Software Foundation; either version 3, or (at your option) |
92204597 BK |
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 | |
748086b7 JJ |
18 | // with this library; see the file COPYING3. If not see |
19 | // <http://www.gnu.org/licenses/>. | |
92204597 | 20 | |
23cac885 | 21 | #include <sstream> |
92204597 BK |
22 | #include <testsuite_hooks.h> |
23 | ||
23cac885 | 24 | void test06() |
92204597 | 25 | { |
11f10e6b | 26 | bool test __attribute__((unused)) = true; |
23cac885 BK |
27 | |
28 | std::ostringstream os ("foo", std::ios_base::app); | |
29 | os << "bar"; | |
30 | ||
31 | VERIFY( os.str() == "foobar" ); | |
92204597 BK |
32 | } |
33 | ||
23cac885 | 34 | int main() |
92204597 | 35 | { |
23cac885 | 36 | test06(); |
92204597 BK |
37 | return 0; |
38 | } | |
23cac885 BK |
39 | |
40 | ||
41 | ||
42 | // more candy!!! |