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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [decl2.C] - Diff between revs 301 and 338

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

Rev 301 Rev 338
// { dg-do compile }
// { dg-do compile }
// Copyright (C) 2002 Free Software Foundation, Inc.
// Copyright (C) 2002 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 24 Dec 2002 
// Contributed by Nathan Sidwell 24 Dec 2002 
// Source Martin Buchholz martin@xemacs.org
// Source Martin Buchholz martin@xemacs.org
// PR 9053. Failed to consider templates that are disambiguated by
// PR 9053. Failed to consider templates that are disambiguated by
// return type.
// return type.
template  class bar;
template  class bar;
template <> struct bar { typedef void type; };
template <> struct bar { typedef void type; };
template  class qux;
template  class qux;
template <> struct qux { typedef void type; };
template <> struct qux { typedef void type; };
template 
template 
typename bar::type foo (T t) { }
typename bar::type foo (T t) { }
template 
template 
typename qux::type foo (T t) { }
typename qux::type foo (T t) { }
int
int
main (int argc, char *argv[])
main (int argc, char *argv[])
{
{
  foo ("foo");
  foo ("foo");
  foo (7);
  foo (7);
}
}
 
 

powered by: WebSVN 2.1.0

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