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 }
|
// PR c++/17661
|
// PR c++/17661
|
// We used to try to create a temprary for the condition
|
// We used to try to create a temprary for the condition
|
// expression in the for which was wrong.
|
// expression in the for which was wrong.
|
|
|
|
|
struct C
|
struct C
|
{
|
{
|
C (const C &x);
|
C (const C &x);
|
};
|
};
|
C &f();
|
C &f();
|
void breakme (C j, bool k)
|
void breakme (C j, bool k)
|
{
|
{
|
for (;; k ? j : f()) ;
|
for (;; k ? j : f()) ;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.