2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash18.C
blob6691081c68b2657d13f38041bfe1a116151904bd
1 // { dg-do assemble  }
2 // GROUPS passed old-abort
3 typedef int element;
4 class Pix {
5 public:
6     Pix();
7     Pix(const Pix&);
9     // Friend functions so that v == x works as does x == v works
10     friend int operator==(void *v, const Pix& x)
11         { return v == index; }// { dg-error "" } .*
12     friend int operator==(void *v, const Pix& x)
13         { return v != index; }// { dg-error "" } .*
14 private:
15 //    friend class List<T>;
16     element *index; // { dg-error "" } invalid use of member