URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do compile }
|
// { dg-do compile }
|
// GROUPS passed old-abort
|
// GROUPS passed old-abort
|
typedef int element;
|
typedef int element;
|
class Pix {
|
class Pix {
|
public:
|
public:
|
Pix();
|
Pix();
|
Pix(const Pix&);
|
Pix(const Pix&);
|
|
|
// Friend functions so that v == x works as does x == v works
|
// Friend functions so that v == x works as does x == v works
|
friend int operator==(void *v, const Pix& x) // { dg-error "previously" }
|
friend int operator==(void *v, const Pix& x) // { dg-error "previously" }
|
{ return v == index; } // { dg-error "from this location" }
|
{ return v == index; } // { dg-error "from this location" }
|
// ??? should be operator!=
|
// ??? should be operator!=
|
friend int operator==(void *v, const Pix& x) // { dg-error "redefinition" }
|
friend int operator==(void *v, const Pix& x) // { dg-error "redefinition" }
|
{ return v != index; }
|
{ return v != index; }
|
private:
|
private:
|
// friend class List;
|
// friend class List;
|
element *index; // { dg-error "invalid use of non-static data member" }
|
element *index; // { dg-error "invalid use of non-static data member" }
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.