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 }
|
// GROUPS passed nested-classes
|
// GROUPS passed nested-classes
|
// This is the first line of file ||t5.C||.
|
// This is the first line of file ||t5.C||.
|
|
|
// This code initializing an unnamed union inside a class appears to
|
// This code initializing an unnamed union inside a class appears to
|
// be legal C++ input and compiles fine with AT&T cfront 3.0.1, but
|
// be legal C++ input and compiles fine with AT&T cfront 3.0.1, but
|
// gcc 2.4.5 complains about multiple initializations of the same
|
// gcc 2.4.5 complains about multiple initializations of the same
|
// member.
|
// member.
|
|
|
class Expr {
|
class Expr {
|
public:
|
public:
|
enum Type { undefined, slong, ulong, ldouble };
|
enum Type { undefined, slong, ulong, ldouble };
|
Expr();
|
Expr();
|
Expr(Type type, const Expr* initializer);
|
Expr(Type type, const Expr* initializer);
|
private:
|
private:
|
Type type_;
|
Type type_;
|
union {
|
union {
|
long slong_;
|
long slong_;
|
unsigned long ulong_;
|
unsigned long ulong_;
|
long double ldouble_;
|
long double ldouble_;
|
};
|
};
|
};
|
};
|
|
|
// Construct an undefined expression.
|
// Construct an undefined expression.
|
|
|
Expr::Expr()
|
Expr::Expr()
|
:
|
:
|
type_(undefined),
|
type_(undefined),
|
slong_(-1)
|
slong_(-1)
|
{}
|
{}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.