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.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [memtemp78.C] - Diff between revs 305 and 384

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

Rev 305 Rev 384
// { dg-do assemble  }
// { dg-do assemble  }
struct A
struct A
{
{
  void f() {}
  void f() {}
  template 
  template 
  void f() {}
  void f() {}
};
};
template 
template 
struct B
struct B
{
{
  void f() {}
  void f() {}
  template 
  template 
  void f() {}
  void f() {}
};
};
template struct B;
template struct B;
struct C
struct C
{
{
  template 
  template 
  void f() {}  // { dg-error "with" } redeclaration
  void f() {}  // { dg-error "with" } redeclaration
  template 
  template 
  void f() {}  // { dg-error "overloaded" } redeclaration
  void f() {}  // { dg-error "overloaded" } redeclaration
};
};
template 
template 
struct D
struct D
{
{
  void f(T);
  void f(T);
  void f(U);
  void f(U);
};
};
template struct D;
template struct D;
template 
template 
struct D2
struct D2
{
{
  void f(T); // { dg-error "with" } redeclaration
  void f(T); // { dg-error "with" } redeclaration
  void f(U); // { dg-error "overloaded" } redeclaration
  void f(U); // { dg-error "overloaded" } redeclaration
};
};
template struct D2;
template struct D2;
struct E
struct E
{
{
  void f();  // { dg-error "with" } redeclaration
  void f();  // { dg-error "with" } redeclaration
  void f(); // { dg-error "overloaded" } redeclaration
  void f(); // { dg-error "overloaded" } redeclaration
};
};
 
 

powered by: WebSVN 2.1.0

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