aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/g++.dg/lto/20090106_0.C
blob: 8c4d3952ef2a3caa084687c5c5a6ddab11c066c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
// { dg-lto-do link }
typedef long unsigned int size_t;
namespace std __attribute__ ((__visibility__ ("default"))) {
  using ::size_t;
  template<typename _Tp>
    struct __is_char
    {
    };
# 422 "/usr/include/c++/4.4.0/bits/cpp_type_traits.h" 3
}
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
  template<bool, typename>
    struct __enable_if
    {
    };
}
namespace std __attribute__ ((__visibility__ ("default"))) {
  template<class _T1, class _T2>
    struct pair
    {
    };
}
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
  template<typename _Tp>
    class new_allocator
    {
    };
}
namespace std __attribute__ ((__visibility__ ("default"))) {
  template<typename _Tp>
    class allocator: public __gnu_cxx::new_allocator<_Tp>
    {
  };
  template<typename _Arg1, typename _Arg2, typename _Result>
    struct binary_function
    {
    };
  template<typename _Tp>
    struct less : public binary_function<_Tp, _Tp, bool>
    {
    };
  template<typename _CharT>
    struct char_traits
    {
      typedef _CharT char_type;
      static std::size_t
      length(const char_type* __s);
    };
  template<typename _CharT>
    std::size_t
    char_traits<_CharT>::
    length(const char_type* __p)
    {
  }
  template<typename _CharT, typename _Traits = char_traits<_CharT> >
    class istreambuf_iterator;
  template<typename _CharT, typename _Traits, typename _Alloc>
    class basic_string
    {
  };
}
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
  template<typename _CharT, typename _Traits, typename _Alloc>
    class __versa_string;
  template<typename _CharT, typename _Traits, typename _Alloc>
    struct __vstring_utility
    {
    };
 template<typename _CharT, typename _Traits, typename _Alloc>
    class __rc_string_base
    {
      typedef __vstring_utility<_CharT, _Traits, _Alloc> _Util_Base;
      typedef typename _Util_Base::_CharT_alloc_type _CharT_alloc_type;
      typedef typename _CharT_alloc_type::size_type size_type;
      struct _Rep
      {
 union
 {
 };
 static _Rep*
 _S_create(size_type, size_type, const _Alloc&);
      };
    };
  template<typename _CharT, typename _Traits, typename _Alloc>
    typename __rc_string_base<_CharT, _Traits, _Alloc>::_Rep*
    __rc_string_base<_CharT, _Traits, _Alloc>::_Rep::
    _S_create(size_type __capacity, size_type __old_capacity,
       const _Alloc& __alloc)
    {
    };
}
template<typename _CharT, typename _Traits = std::char_traits<_CharT>,
         typename _Alloc = std::allocator<_CharT> >
class basic_string
    : public __gnu_cxx::__versa_string<_CharT, _Traits, _Alloc> {
};
template<typename _CharT, typename _Traits, typename _Alloc>
  operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
            const std::basic_string<_CharT, _Traits, _Alloc>& __rhs)
  {
}
namespace std __attribute__ ((__visibility__ ("default"))) {
    struct __uninitialized_copy
    {
      template<typename _InputIterator, typename _ForwardIterator>
        uninitialized_copy(_InputIterator __first, _InputIterator __last,
      _ForwardIterator __result)
        {
 }
    };
  template<typename _InputIterator, typename _ForwardIterator>
    uninitialized_copy(_InputIterator __first, _InputIterator __last,
         _ForwardIterator __result)
    {
    }
  class locale
  {
    class facet;
  };
  class locale::facet
    {
    };
  class ios_base
  {
      template<typename _CharT2>
 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
               istreambuf_iterator<_CharT2> >::__type
 find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>,
      const _CharT2&);
    };
  template<typename _CharT, typename _OutIter>
    class num_put : public locale::facet
    {
      typedef _CharT char_type;
      typedef _OutIter iter_type;
      template<typename _ValueT>
        iter_type
        _M_insert_float(iter_type, ios_base& __io, char_type __fill,
   char __mod, _ValueT __v) const;
    };
  template<typename _CharT, typename _OutIter>
    template<typename _ValueT>
      _OutIter
      num_put<_CharT, _OutIter>::
      _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod,
         _ValueT __v) const
      {
      }
  template<typename _CharT, typename _OutIter>
    class basic_ios : public ios_base
    {
    };
  template<typename _CharT, typename _Traits>
    class basic_istream : virtual public basic_ios<_CharT, _Traits>
    {
      typedef basic_istream<_CharT, _Traits> __istream_type;
      template<typename _ValueT>
        __istream_type&
        _M_extract(_ValueT& __v);
    };
  template<typename _CharT, typename _Traits>
    template<typename _ValueT>
      basic_istream<_CharT, _Traits>&
      basic_istream<_CharT, _Traits>::
      _M_extract(_ValueT& __v)
      {
      }
    class hash_map
    {
    };
}
class CDE {
 public:
  virtual ~CDE() { }
};
namespace std __attribute__ ((__visibility__ ("default"))) {
  template <typename _Key, typename _Tp, typename _Compare = std::less<_Key>,
            typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
    class map
    {
    };
  template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
    operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x,
              const map<_Key, _Tp, _Compare, _Alloc>& __y)
    { return !(__x < __y); }
}
namespace xyz {
class XYZ;
};
class ABC {
 public:
  virtual ~ABC() { }
};
class FGH : public CDE, public ABC {
 public:
  explicit FGH(CDE* efg);
};
namespace {
class LMN : public FGH {
  LMN(CDE* efg, xyz::XYZ* hij) : FGH(efg) { }
};
}
main(){}