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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [pt1.C] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run  }
2
template 
3
class A {
4
public:
5
  A (T at, V av);
6
  void print () { }
7
protected:
8
  T t;
9
  V v;
10
};
11
 
12
template 
13
A::A (T at, V av) {
14
  t = at;
15
  v = av;
16
}
17
 
18
 
19
template 
20
class B: public virtual A {
21
public:
22
  B (T at, V av);
23
  void print () { }
24
};
25
 
26
template 
27
B::B (T at, V av) : A (at, av) { }      // { dg-bogus "" }
28
 
29
int main () {
30
  int i = 2;
31
  double x = 2;
32
 
33
  B ab(i, x);
34
  ab.print();
35
 
36
  return 0;
37
}

powered by: WebSVN 2.1.0

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