OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20091002-1_0.C] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-lto-do link }
2
// { dg-require-effective-target fpic }
3
// { dg-lto-options {{-fPIC -flto}} }
4
// { dg-extra-ld-options "-fPIC -r -nostdlib" }
5
 
6
namespace std __attribute__ ((__visibility__ ("default")))
7
{
8
  template     struct char_traits;
9
  template >
10
      class basic_ostream;
11
  template >
12
      class istreambuf_iterator;
13
  typedef basic_ostream ostream;
14
  template >
15
      class num_get;
16
  class locale   {
17
      class facet;
18
  };
19
  class locale::facet   {
20
  };
21
  enum _Ios_Iostate { _S_beg = 0, _S_cur = 1, _S_end = 2,
22
      _S_ios_seekdir_end = 1L << 16     };
23
  class ios_base   {
24
  public:
25
      typedef _Ios_Iostate iostate;
26
  };
27
  template
28
      class num_get : public locale::facet     {
29
          typedef _InIter iter_type;
30
          template iter_type
31
              _M_extract_int(iter_type, iter_type, ios_base&,
32
                             ios_base::iostate&, _ValueT&) const;
33
          virtual iter_type
34
              do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const;
35
      };
36
  extern template class num_get;
37
  template
38
      class basic_ios : public ios_base     {
39
          typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> >
40
              __num_get_type;
41
          const __num_get_type* _M_num_get;
42
      };
43
  template
44
      class basic_ostream : virtual public basic_ios<_CharT, _Traits>     {
45
      public:
46
          typedef basic_ostream<_CharT, _Traits> __ostream_type;
47
          __ostream_type&       operator<<(double __f)       { }
48
      };
49
  typedef double Real;
50
  class Vector {
51
  public:
52
      Real operator[](int n) const    { }
53
  };
54
  std::ostream& operator<<(std::ostream& s, const Vector& vec)
55
    {
56
      int i;
57
      s << vec[i] << ')';
58
    }
59
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.