3 // { dg-options "-O2 -g --param=large-stack-frame-growth=1" }
4 // { dg-additional-options "-Wno-return-type" }
6 template <typename _Iterator>
9 typedef _Iterator iterator_type;
11 template <typename _CharT>
13 template <typename _CharT>
14 struct basic_ostringstream;
15 template <typename _CharT>
16 struct ostreambuf_iterator;
17 typedef basic_ostringstream <char>ostringstream;
18 template <typename _Iterator> struct _Miter_base : _Iter_base <_Iterator>
21 template <typename _Iterator>
22 typename _Miter_base <_Iterator>::iterator_type __miter_base (_Iterator);
23 template <typename _CharT>
24 ostreambuf_iterator <_CharT>
25 __copy_move_a2 (ostreambuf_iterator <_CharT>);
26 template <typename _II, typename _OI>
27 _OI copy (_II __first, _II __last, _OI __result)
29 __copy_move_a2 <false> (__first, __miter_base (__last), __result);
36 _Words _M_local_word[8];
38 template <typename _CharT>
39 struct basic_streambuf
41 typedef _CharT char_type;
42 int sputn (char_type *, int);
44 template <typename _CharT>
45 struct ostreambuf_iterator
47 typedef basic_streambuf <_CharT> streambuf_type;
48 typedef basic_ostream <_CharT> ostream_type;
49 streambuf_type *_M_sbuf;
51 ostreambuf_iterator (ostream_type __s) : _M_sbuf (__s.rdbuf ()), _M_failed () {}
52 void _M_put (_CharT * __ws, int __len)
54 if (_M_failed && _M_sbuf->sputn (__ws, __len) != __len) _M_failed = true;
57 template <bool, typename _CharT>
58 void __copy_move_a2 (_CharT * __first,_CharT * __last,ostreambuf_iterator <_CharT> __result)
60 int __num = __last - __first;
61 __result._M_put (__first, __num);
63 template <typename _CharT>
64 struct basic_ios : ios_base
66 basic_streambuf <_CharT> *rdbuf ();
68 template <typename _CharT>
69 struct basic_ostream : public basic_ios <_CharT>
72 template <typename _CharT>
73 struct basic_ostringstream : public basic_ostream <_CharT>
81 ostreambuf_iterator <char> out1 (oss1);
82 out1 = copy (beg1, beg1, out1);