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 }
|
// { dg-options "-O -Wall -fgcse" }
|
// { dg-options "-O -Wall -fgcse" }
|
// From: Klaus-Georg Adams
|
// From: Klaus-Georg Adams
|
// Reported against EGCS snaps 98/06/28.
|
// Reported against EGCS snaps 98/06/28.
|
//
|
//
|
// Compilation of this program with the flags g++ -Wall -O -fgcse
|
// Compilation of this program with the flags g++ -Wall -O -fgcse
|
// or -O2 produces spurious warnings in the standard
|
// or -O2 produces spurious warnings in the standard
|
// header .
|
// header .
|
//
|
//
|
// They vanish if the declaration of a::b is taken out.
|
// They vanish if the declaration of a::b is taken out.
|
|
|
#include
|
#include
|
|
|
std::string foo();
|
std::string foo();
|
struct a {
|
struct a {
|
void bar();
|
void bar();
|
enum b { c, d };
|
enum b { c, d };
|
b theb;
|
b theb;
|
std::string baz;
|
std::string baz;
|
};
|
};
|
|
|
void
|
void
|
a::bar()
|
a::bar()
|
{
|
{
|
baz += foo() + foo();
|
baz += foo() + foo();
|
baz += foo() + foo() + "foo";
|
baz += foo() + foo() + "foo";
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.