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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit78.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
template 
4
struct A {
5
};
6
 
7
template 
8
struct B {
9
  operator A<3> ();
10
  operator B<3, 7> ();
11
};
12
 
13
 
14
template 
15
void f(B);
16
 
17
template 
18
void f(A)
19
{
20
}
21
 
22
int main()
23
{
24
  // Deduction fails with the first `f'.  Since `3' is explicitly
25
  // specified, we don't try any deduction with the second `f'.  So,
26
  // we call the second `f'.
27
  f<3>(B<2, 7>());
28
}

powered by: WebSVN 2.1.0

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