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/] [explicit77.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
template 
4
struct S {};
5
 
6
template 
7
struct S : public S, S {};
8
 
9
template 
10
void f(S, S);   // { dg-message "note" }
11
 
12
void g() {
13
  S<0, 0, 0> s0;
14
  S<0, 1, 2> s2;
15
 
16
  f<0>(s0, s2);
17
  f(s0, s2); // { dg-error "" } no matching function
18
  // { dg-message "(candidate|deduced conflicting types|ambiguous base class)" "candidate note" { target *-*-* } 17 }
19
}

powered by: WebSVN 2.1.0

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