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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [decl2.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2002 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 24 Dec 2002 
5
// Source Martin Buchholz martin@xemacs.org
6
 
7
// PR 9053. Failed to consider templates that are disambiguated by
8
// return type.
9
 
10
template  class bar;
11
template <> struct bar { typedef void type; };
12
template  class qux;
13
template <> struct qux { typedef void type; };
14
 
15
template 
16
typename bar::type foo (T t) { }
17
 
18
template 
19
typename qux::type foo (T t) { }
20
 
21
 
22
int
23
main (int argc, char *argv[])
24
{
25
  foo ("foo");
26
  foo (7);
27
}

powered by: WebSVN 2.1.0

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