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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using49.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/51188
2
// { dg-do compile }
3
 
4
#include 
5
class XBase {
6
public:
7
   virtual ~XBase() = 0;
8
   enum ImpMode { Imp1, Imp2, Imp3 };
9
};
10
class X : public XBase {
11
   class XBlock {};
12
   using XBase::ImpMode;
13
   using XBase::Imp3;
14
   using XBase::Imp1;
15
   using XBase::Imp2;
16
   int _XBlocked;
17
   std::pair getImp(void) const {
18
      return (std::make_pair(0, static_cast(X::Imp1)));
19
   }
20
};

powered by: WebSVN 2.1.0

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