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/] [ipa/] [pr43812.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O -fwhole-program -fipa-cp" } */
/* { dg-options "-O -fwhole-program -fipa-cp" } */
typedef float scoord_t;
typedef float scoord_t;
typedef scoord_t sdist_t;
typedef scoord_t sdist_t;
typedef sdist_t dist_t;
typedef sdist_t dist_t;
template class TRay { };
template class TRay { };
typedef TRay Ray;
typedef TRay Ray;
class BBox { };
class BBox { };
class RenderContext { };
class RenderContext { };
class RefCounted {
class RefCounted {
public:
public:
    void deref () const {
    void deref () const {
        if (--ref_count <= 0) {
        if (--ref_count <= 0) {
            delete this;
            delete this;
        }
        }
    }
    }
    mutable int ref_count;
    mutable int ref_count;
};
};
template class Ref {
template class Ref {
public:
public:
    ~Ref () {
    ~Ref () {
        if (obj) obj->deref ();
        if (obj) obj->deref ();
    }
    }
    T *obj;
    T *obj;
};
};
class Material : public RefCounted { };
class Material : public RefCounted { };
class Surface {
class Surface {
public:
public:
    virtual ~Surface () { }
    virtual ~Surface () { }
    class IsecInfo   { };
    class IsecInfo   { };
    virtual const IsecInfo *intersect (Ray &ray, RenderContext &context) const;
    virtual const IsecInfo *intersect (Ray &ray, RenderContext &context) const;
    Ref material;
    Ref material;
};
};
class LocalSurface : public Surface {
class LocalSurface : public Surface {
    virtual BBox bbox () const;
    virtual BBox bbox () const;
};
};
BBox LocalSurface::bbox () const { }
BBox LocalSurface::bbox () const { }
 
 

powered by: WebSVN 2.1.0

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