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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [pr40561.C] - Rev 693

Compare with Previous | Blame | View Log

// { dg-do compile }

#include <set>

class SyAccess;
class VamsBase 
{
        public:
        virtual ~VamsBase(void);
};

class VamsFnct : public VamsBase 
{       
        public:
        ~VamsFnct(void);
        std::set<SyAccess*> getNullDependencies(void) const
        {       return std::set<SyAccess*>();
        }
};

class VamsFnctSystem:public VamsFnct
{       public:
        VamsFnctSystem(
                const bool _bPassDependencies);
};

template< std::set<SyAccess*> (VamsFnct::*__GET_DEP__)(void) const >
class VamsSystemFunction:public VamsFnctSystem
{       public:
        VamsSystemFunction()
            :VamsFnctSystem(
                __GET_DEP__ != &VamsFnct::getNullDependencies
                )
        {
        }
};

VamsSystemFunction<&VamsFnct::getNullDependencies> s;

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.