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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr39732.C] - Blame information for rev 693

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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