URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 26 Dec 2002
|
// Contributed by Nathan Sidwell 26 Dec 2002
|
|
|
// PR 764. Failed to find friend in overload resolution
|
// PR 764. Failed to find friend in overload resolution
|
|
|
template
|
template
|
struct S
|
struct S
|
{
|
{
|
friend bool operator== (const S&, const S&) {
|
friend bool operator== (const S&, const S&) {
|
return true;
|
return true;
|
}
|
}
|
};
|
};
|
|
|
int main ()
|
int main ()
|
{
|
{
|
// S s;
|
// S s;
|
|
|
const S *p = 0;
|
const S *p = 0;
|
*p == *p; // error
|
*p == *p; // error
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.