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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr18683-1.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// PR middle-end/18683
2
// { dg-do compile }
3
// { dg-options "-O0" }
4
 
5
template
6
struct basic_ostream
7
{
8
  basic_ostream& operator<<(int __n);
9
};
10
 
11
extern basic_ostream  cout;
12
 
13
template struct linear_congruential
14
{
15
  template
16
  friend basic_ostream&
17
  operator<<(basic_ostream& os,
18
             const linear_congruential& lcg)
19
  {
20
    return os << 1;
21
  }
22
};
23
 
24
void instantiate_all()
25
{
26
  linear_congruential<0> lcf;
27
  cout << lcf;
28
}
29
 

powered by: WebSVN 2.1.0

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