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

Subversion Repositories openrisc_me

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
#include 
3
 
4
template < class T >
5
class X
6
{
7
  protected:
8
 
9
    union {
10
        int     x;
11
        double  y;
12
    };
13
};
14
 
15
template < class T >
16
class Y : public X
17
{
18
  public:
19
 
20
    using X::x;
21
 
22
    void        f () { std::cout << this->x << std::endl; }
23
};

powered by: WebSVN 2.1.0

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