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/] [spec6.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
struct S1
4
{
5
  template 
6
  void f(T t1, T t2);           // { dg-message "note" }
7
};
8
 
9
 
10
template <>
11
void S1::f(int i1, int i2);
12
 
13
template 
14
struct S2
15
{
16
  template 
17
  void f(T t1, T t2);           // { dg-message "note" }
18
};
19
 
20
template <>
21
template <>
22
void S2::f(int i1, int i2);
23
 
24
void h()
25
{
26
  S1 s1;
27
  s1.f(3, 'c'); // { dg-error "" } no matching function
28
  // { dg-message "(candidate|deduced conflicting types)" "candidate note" { target *-*-* } 27 }
29
 
30
  S2 s2;
31
  s2.f(3, 'c'); // { dg-error "" } no matching function
32
  // { dg-message "(candidate|deduced conflicting types)" "candidate note" { target *-*-* } 31 }
33
}

powered by: WebSVN 2.1.0

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