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++.dg/] [overload/] [operator-star-1.C] - Diff between revs 149 and 154

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

Rev 149 Rev 154
// Copyright (C) 2002 Free Software Foundation
// Copyright (C) 2002 Free Software Foundation
// Origin: C++/70
// Origin: C++/70
// Contributed by Gabriel Dos Reis 
// Contributed by Gabriel Dos Reis 
// { dg-do compile }
// { dg-do compile }
template 
template 
  struct S;
  struct S;
template 
template 
  void operator* (S, S);
  void operator* (S, S);
template 
template 
  struct S
  struct S
  {
  {
     friend void operator*<> (S, S); // { }   // okay
     friend void operator*<> (S, S); // { }   // okay
     void operator* (T) { }
     void operator* (T) { }
  };
  };
template 
template 
  void operator* (S, S) { }
  void operator* (S, S) { }
int main()
int main()
{
{
   S s1, s2;
   S s1, s2;
   s1 * s2;
   s1 * s2;
   s1 * 2;
   s1 * 2;
}
}
 
 

powered by: WebSVN 2.1.0

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