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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [new8.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/34336
2
// { dg-do compile }
3
 
4
struct A;
5
 
6
template 
7
struct S
8
{
9
  T *m;
10
  T &operator* () { return *m; }
11
};
12
 
13
struct B
14
{
15
  B (const A &);
16
};
17
 
18
template 
19
struct C
20
{
21
  C ();
22
  S c;
23
};
24
 
25
template 
26
C::C ()
27
{
28
  B *b = new B (*c);
29
}

powered by: WebSVN 2.1.0

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