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/] [parms2.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
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 5 Sept 2000 
5
 
6
// bug 73. We failed to compare explicit arguments for a TEMPLATE_ID_EXPR in a
7
// TYPENAME_TYPE.
8
 
9
struct Plus {
10
  template 
11
  struct Sig { typedef int Third;};
12
};
13
 
14
 
15
template 
16
struct Ethel {
17
  typedef int WrappedType;
18
};
19
 
20
struct Fred {
21
 
22
  template 
23
  Ethel::Third> baz ();
24
 
25
 
26
  template 
27
  Ethel::Third>
28
  foo ( const Z&, const Ethel&, const Ethel&) const;
29
};
30
 
31
int main() {
32
  Fred f;
33
  Ethel e;
34
  Plus p;
35
 
36
  f.foo (p, e, e);
37
 
38
  return 0;
39
}

powered by: WebSVN 2.1.0

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