2 // { dg-require-effective-target fpic }
3 // { dg-lto-options {{-fPIC -flto -Wno-return-type}} }
4 // { dg-extra-ld-options "-fPIC -r -nostdlib" }
6 namespace std __attribute__ ((__visibility__ ("default")))
8 template<class _CharT> struct char_traits;
9 template<typename _CharT, typename _Traits = char_traits<_CharT> >
11 template<typename _CharT, typename _Traits = char_traits<_CharT> >
12 class istreambuf_iterator;
13 typedef basic_ostream<char> ostream;
14 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
21 enum _Ios_Iostate { _S_beg = 0, _S_cur = 1, _S_end = 2,
22 _S_ios_seekdir_end = 1L << 16 };
25 typedef _Ios_Iostate iostate;
27 template<typename _CharT, typename _InIter>
28 class num_get : public locale::facet {
29 typedef _InIter iter_type;
30 template<typename _ValueT> iter_type
31 _M_extract_int(iter_type, iter_type, ios_base&,
32 ios_base::iostate&, _ValueT&) const;
34 do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const;
36 extern template class num_get<char>;
37 template<typename _CharT, typename _Traits>
38 class basic_ios : public ios_base {
39 typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> >
41 const __num_get_type* _M_num_get;
43 template<typename _CharT, typename _Traits>
44 class basic_ostream : virtual public basic_ios<_CharT, _Traits> {
46 typedef basic_ostream<_CharT, _Traits> __ostream_type;
47 __ostream_type& operator<<(double __f) { }
52 Real operator[](int n) const { }
54 std::ostream& operator<<(std::ostream& s, const Vector& vec)