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] - Rev 693

Compare with Previous | Blame | View Log

// PR c++/51188
// { dg-do compile }

#include <utility>
class XBase {
public:
   virtual ~XBase() = 0;
   enum ImpMode { Imp1, Imp2, Imp3 };
};
class X : public XBase {
   class XBlock {};
   using XBase::ImpMode;
   using XBase::Imp3;
   using XBase::Imp1;
   using XBase::Imp2;
   int _XBlocked;
   std::pair<int,int> getImp(void) const {
      return (std::make_pair(0, static_cast<int>(X::Imp1)));
   }
};

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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