tree-optimization/115602 - SLP CSE results in cycles
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash18.C
blobaa605ef71fa0e9b87db69d03450af6321549fd00
1 // { dg-do compile }
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) // { dg-message "previously" }
11     { return v == index; }  // { dg-error "non-static" }
12     // ??? should be operator!=
13     friend int operator==(void *v, const Pix& x) // { dg-error "redefinition" }
14     { return v != index; }
15 private:
16 //    friend class List<T>;
17     element *index; // { dg-message "" }