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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [ttp25.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
template class C>
3
void f1(T, C<5>);          // { dg-message "note" }
4
 
5
template class C>
6
void f2(C<5>, T);
7
 
8
template class C>
9
void f3(C<5>, T);          // { dg-message "note" }
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>);          // { dg-message "note" }
17
 
18
template struct X {};
19
void g() {
20
  f1(5l, X<5>()); // { dg-error "no matching" }
21
  // { dg-message "(candidate|inconsistent with)" "candidate note" { target *-*-* } 20 }
22
  f2(X<5>(), 5);
23
  f3(X<5>(), 5l); // { dg-error "no matching" }
24
  // { dg-message "(candidate|inconsistent with)" "candidate note" { target *-*-* } 23 }
25
  f4(5, X<5>());
26
  f4(5l, X<5>()); // { dg-error "no matching" }
27
  // { dg-message "(candidate|inconsistent with)" "candidate note" { target *-*-* } 26 }
28
  f4((short)5, X<5>());
29
}

powered by: WebSVN 2.1.0

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