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 assemble }
|
// { dg-do assemble }
|
//
|
//
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 24 Jul 2001
|
// Contributed by Nathan Sidwell 24 Jul 2001
|
|
|
// Bug 3416. We left some unchecked overloaded functions lying around.
|
// Bug 3416. We left some unchecked overloaded functions lying around.
|
|
|
struct X
|
struct X
|
{
|
{
|
void operator << (int);
|
void operator << (int);
|
void operator << (float);
|
void operator << (float);
|
};
|
};
|
|
|
void OVL1 (int);
|
void OVL1 (int);
|
void OVL1 (float);
|
void OVL1 (float);
|
|
|
void OVL2 (int);
|
void OVL2 (int);
|
void OVL2 (float);
|
void OVL2 (float);
|
|
|
X x;
|
X x;
|
|
|
void foo (bool a)
|
void foo (bool a)
|
{
|
{
|
x << (a ? OVL1 : OVL2); // { dg-error "" } incomplete type
|
x << (a ? OVL1 : OVL2); // { dg-error "" } incomplete type
|
a ? OVL1 : OVL2; // { dg-error "" } incomplete type
|
a ? OVL1 : OVL2; // { dg-error "" } incomplete type
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.