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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ipa/] [pr43812.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fwhole-program -fipa-cp" } */
3
 
4
typedef float scoord_t;
5
typedef scoord_t sdist_t;
6
typedef sdist_t dist_t;
7
template class TRay { };
8
typedef TRay Ray;
9
class BBox { };
10
class RenderContext { };
11
class RefCounted {
12
public:
13
    void deref () const {
14
        if (--ref_count <= 0) {
15
            delete this;
16
        }
17
    }
18
    mutable int ref_count;
19
};
20
template class Ref {
21
public:
22
    ~Ref () {
23
        if (obj) obj->deref ();
24
    }
25
    T *obj;
26
};
27
class Material : public RefCounted { };
28
class Surface {
29
public:
30
    virtual ~Surface () { }
31
    class IsecInfo   { };
32
    virtual const IsecInfo *intersect (Ray &ray, RenderContext &context) const;
33
    Ref material;
34
};
35
class LocalSurface : public Surface {
36
    virtual BBox bbox () const;
37
};
38
BBox LocalSurface::bbox () const { }

powered by: WebSVN 2.1.0

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