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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [operator5.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
// Copyright (C) 2004 Free Software Foundation, Inc.
// Copyright (C) 2004 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 7 Dec 2004 
// Contributed by Nathan Sidwell 7 Dec 2004 
// PR 18803: reject legal
// PR 18803: reject legal
// Origin: Wolfgang Bangerth 
// Origin: Wolfgang Bangerth 
struct A {
struct A {
  int operator() ();
  int operator() ();
};
};
template  void foo () {
template  void foo () {
  A &a = *new A();
  A &a = *new A();
  const int i = a();
  const int i = a();
}
}
 
 

powered by: WebSVN 2.1.0

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