OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [static8.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do run  }
// { dg-do run  }
// Origin: Mark Mitchell 
// Origin: Mark Mitchell 
int i;
int i;
template 
template 
struct S {
struct S {
  S() { ++i; }
  S() { ++i; }
  virtual void g() {}
  virtual void g() {}
  virtual void f();
  virtual void f();
  static S s;
  static S s;
};
};
template 
template 
void S::f() {
void S::f() {
  s.f();
  s.f();
}
}
S si;
S si;
template 
template 
S S::s;
S S::s;
int main ()
int main ()
{
{
  si.g();
  si.g();
  if (i != 2)
  if (i != 2)
    return 1;
    return 1;
  else
  else
    return 0;
    return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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