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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [ttp25.C] - Blame information for rev 308

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
template class C>
3
void f1(T, C<5>);
4
 
5
template class C>
6
void f2(C<5>, T);
7
 
8
template class C>
9
void f3(C<5>, T);
10
 
11
template struct metafun { typedef T type; };
12
 
13
template<> struct metafun { typedef int type; };
14
 
15
template::type> class C>
16
void f4(T, C<5>);
17
 
18
template struct X {};
19
void g() {
20
  f1(5l, X<5>()); // { dg-error "no matching" }
21
  f2(X<5>(), 5);
22
  f3(X<5>(), 5l); // { dg-error "no matching" }
23
  f4(5, X<5>());
24
  f4(5l, X<5>()); // { dg-error "no matching" }
25
  f4((short)5, X<5>());
26
}

powered by: WebSVN 2.1.0

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