2 // { dg-require-effective-target fpic }
3 // { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -O2}} }
4 // { dg-extra-ld-options "-O2 -fPIC -flto -flto-partition=1to1 -r -nostdlib" }
6 typedef long int ptrdiff_t;
20 namespace std __attribute__ ((__visibility__ ("default")))
22 template < typename _Alloc > class allocator;
23 template < class _CharT > struct char_traits;
25 typedef __mbstate_t mbstate_t;
26 namespace std __attribute__ ((__visibility__ ("default")))
29 typedef ptrdiff_t streamsize;
30 template < typename _CharT, typename _Traits =
31 char_traits < _CharT > >class basic_istream;
32 template < typename _CharT, typename _Traits =
33 char_traits < _CharT >, typename _Alloc =
34 allocator < _CharT > >class basic_stringbuf;
37 public:class failure:public exception
40 virtual ~ ios_base ();
42 template < typename _CharT, typename _Traits > class basic_streambuf
45 template < typename _CharT, typename _Traits > class basic_ios:public
49 template < typename _CharT, typename _Traits > class basic_istream:virtual public basic_ios < _CharT,
53 typedef basic_streambuf < _CharT, _Traits > __streambuf_type;
54 protected:streamsize _M_gcount;
55 public: explicit basic_istream (__streambuf_type * __sb):_M_gcount (streamsize
60 template < typename _CharT, typename _Traits, typename _Alloc > class basic_stringbuf:public basic_streambuf < _CharT,
65 template < typename V, typename I, typename S = std::mbstate_t > struct character
68 typedef character < unsigned short, unsigned int >pod_ushort;
69 typedef basic_stringbuf < pod_ushort > stringbuf_type;
70 typedef basic_istream < pod_ushort > istream_type;
71 stringbuf_type strbuf01;
72 istream_type stream (&strbuf01);