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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/43890
2
// { dg-do compile }
3
 
4
class Outer
5
{
6
  public:
7
  Outer()
8
  : i(*this)
9
  {
10
  }
11
 
12
  class Inner
13
  {
14
    public:
15
    Inner(Outer& o)
16
    : o(o)
17
    , i(0)
18
    {
19
    }
20
 
21
    private:
22
    Outer& o;
23
    int const i;
24
  };
25
 
26
  private:
27
  Inner i;
28
};
29
 
30
class A {
31
  Outer o;
32
};
33
 
34
int main()
35
{
36
  A *a = new A;
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.