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] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// PR middle-end/18683
// PR middle-end/18683
// { dg-do compile }
// { dg-do compile }
// { dg-options "-O0" }
// { dg-options "-O0" }
template
template
struct basic_ostream
struct basic_ostream
{
{
  basic_ostream& operator<<(int __n);
  basic_ostream& operator<<(int __n);
};
};
extern basic_ostream  cout;
extern basic_ostream  cout;
template struct linear_congruential
template struct linear_congruential
{
{
  template
  template
  friend basic_ostream&
  friend basic_ostream&
  operator<<(basic_ostream& os,
  operator<<(basic_ostream& os,
             const linear_congruential& lcg)
             const linear_congruential& lcg)
  {
  {
    return os << 1;
    return os << 1;
  }
  }
};
};
void instantiate_all()
void instantiate_all()
{
{
  linear_congruential<0> lcf;
  linear_congruential<0> lcf;
  cout << lcf;
  cout << lcf;
}
}
 
 

powered by: WebSVN 2.1.0

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