reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash46.C
blob53cbd1027f6378dcdeef57d7d8b2c5dd5a86550e
1 // { dg-do assemble  }
2 // GROUPS passed old-abort
3 class Rational {
4 public:
5     Rational(int v): value(v)
6         {  }
8     int value;
9 };
10 typedef Rational __Rational;
12 extern int operator>(const Rational&, const Rational&);
14 class V {
15 public:
16     class Rational {
17     public:
18         static int x(const __Rational& value);
19     };
22 int
23 V::Rational::x(const __Rational& value)
25     return value > 0;