OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [spec6.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
 
3
struct S1
4
{
5
  template 
6
  void f(T t1, T t2);
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);
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
 
29
  S2 s2;
30
  s2.f(3, 'c'); // { dg-error "" } no matching function
31
}

powered by: WebSVN 2.1.0

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