2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.gb / scope11.C
blob45f540f9dfa069d949193a18b303b20b68d6e35e
1 // { dg-do assemble  }
2 // GROUPS passed gb scope
3 template<class T, int N> class fixed_array {
4 public:
5   T _array[N];
6 };
8 class Hash {
9 public:
10   Hash (int);
13 typedef fixed_array<char, 4> ipAddress_t;
15 class IPAddress {
16 protected:
17   long _i;
18 public:
19   IPAddress (ipAddress_t ip) { }
20   IPAddress () { }
21   IPAddress netMask () { return *this; }
22   operator Hash ();
25 IPAddress::operator Hash ()
27   return Hash (_i);