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/] [unify7.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 1 Apr 2004 
// Contributed by Nathan Sidwell 1 Apr 2004 
// PR c++/3518
// PR c++/3518
template  void Foo (const T &);
template  void Foo (const T &);
template  void Baz (const T (*)());
template  void Baz (const T (*)());
int &f ();
int &f ();
int main()
int main()
{
{
  Foo (f);
  Foo (f);
  Baz (f); // { dg-error "no matching function" "" }
  Baz (f); // { dg-error "no matching function" "" }
}
}
 
 

powered by: WebSVN 2.1.0

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