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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [primary-expression-1.C] - Diff between revs 301 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// Copyright (C) 2002 Free Software Foundation
// Copyright (C) 2002 Free Software Foundation
// Origin: C++/717
// Origin: C++/717
// Contributed by Gabriel Dos Reis 
// Contributed by Gabriel Dos Reis 
// { dg-do compile }
// { dg-do compile }
class _eAny
class _eAny
{
{
public:
public:
   _eAny(){}
   _eAny(){}
};
};
template 
template 
class _eSeq
class _eSeq
{
{
public:
public:
   _eSeq(const X thing){}
   _eSeq(const X thing){}
   int _oHash() {return 0;}
   int _oHash() {return 0;}
   _eSeq _oPlusPlus(const _eSeq other) const
   _eSeq _oPlusPlus(const _eSeq other) const
   {
   {
      return *this;
      return *this;
   }
   }
   _eSeq take(const _eSeq other) const
   _eSeq take(const _eSeq other) const
   {
   {
      return *this;
      return *this;
   }
   }
};
};
template 
template 
class _eHndl
class _eHndl
{
{
public:
public:
   _eHndl(const _eAny *obj){}
   _eHndl(const _eAny *obj){}
};
};
class VarInstances : public _eAny
class VarInstances : public _eAny
{
{
public:
public:
   VarInstances() : _eAny() {}
   VarInstances() : _eAny() {}
};
};
void testFunc(const VarInstances *testInstance)
void testFunc(const VarInstances *testInstance)
{
{
   const _eSeq<_eHndl > temp1 =
   const _eSeq<_eHndl > temp1 =
      _eSeq<_eHndl >(_eHndl(testInstance));
      _eSeq<_eHndl >(_eHndl(testInstance));
   if((_eSeq<_eHndl
   if((_eSeq<_eHndl
       >(_eHndl(testInstance))._oPlusPlus(temp1)._oHash() ==
       >(_eHndl(testInstance))._oPlusPlus(temp1)._oHash() ==
       7))
       7))
      {
      {
         return;
         return;
      }
      }
}
}
int main(int argc, char** argv)
int main(int argc, char** argv)
{
{
   testFunc(new VarInstances());
   testFunc(new VarInstances());
}
}
 
 

powered by: WebSVN 2.1.0

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