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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [memtemp78.C] - Diff between revs 149 and 154

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

Rev 149 Rev 154
// { 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.