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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [crash46.C] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed old-abort
3
class Rational {
4
public:
5
    Rational(int v): value(v)
6
        {  }
7
 
8
    int value;
9
};
10
typedef Rational __Rational;
11
 
12
extern int operator>(const Rational&, const Rational&);
13
 
14
class V {
15
public:
16
    class Rational {
17
    public:
18
        static int x(const __Rational& value);
19
    };
20
};
21
 
22
int
23
V::Rational::x(const __Rational& value)
24
{
25
    return value > 0;
26
}

powered by: WebSVN 2.1.0

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