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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr39732.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fprofile-generate" } */
3
 
4
template     struct char_traits;
5
template
6
_OI __copy_move_a2(_OI __result);
7
template     inline _OI
8
copy(_OI __result)
9
{
10
  return __copy_move_a2 (__result);
11
}
12
template
13
class basic_ostream     { };
14
template >
15
class ostream_iterator      {
16
    typedef basic_ostream<_CharT, _Traits> ostream_type;
17
    ostream_type* _M_stream;
18
    const _CharT* _M_string;
19
public:
20
    ostream_iterator(ostream_type& __s, const _CharT* __c)
21
        : _M_stream(&__s), _M_string(__c) { }
22
    ostream_iterator(const ostream_iterator& __obj)
23
        : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { }
24
};
25
int f(void)
26
{
27
  basic_ostream > os;
28
  copy(ostream_iterator(os, ","));
29
}

powered by: WebSVN 2.1.0

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