OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash46.C
1 // Build don't link: 
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 }