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/] [template/] [unify6.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
// 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 
void Baz ();
void Baz ();
template  void Foo1 (T *); // #1
template  void Foo1 (T *); // #1
template  void Foo1 (T const *a) {a (1);} // #2
template  void Foo1 (T const *a) {a (1);} // #2
template  T const *Foo2 (T *);
template  T const *Foo2 (T *);
template  void Foo3 (T *, T const * = 0);
template  void Foo3 (T *, T const * = 0);
void Bar ()
void Bar ()
{
{
  Foo1 (&Baz); // #1
  Foo1 (&Baz); // #1
  Foo2 (&Baz);
  Foo2 (&Baz);
  Foo3 (&Baz);
  Foo3 (&Baz);
  Foo3 (&Baz, &Baz); // { dg-error "no matching function" "" }
  Foo3 (&Baz, &Baz); // { 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.