URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/32346
|
// PR c++/32346
|
// { dg-do run }
|
// { dg-do run }
|
// { dg-options "-Wno-overflow" }
|
// { dg-options "-Wno-overflow" }
|
|
|
extern "C" void abort();
|
extern "C" void abort();
|
|
|
struct S {
|
struct S {
|
long long i : 32;
|
long long i : 32;
|
};
|
};
|
|
|
void f(int i, int j) {
|
void f(int i, int j) {
|
if (i != 0xabcdef01)
|
if (i != 0xabcdef01)
|
abort();
|
abort();
|
if (j != 0)
|
if (j != 0)
|
abort();
|
abort();
|
}
|
}
|
|
|
void g(S s) {
|
void g(S s) {
|
f(s.i, 0);
|
f(s.i, 0);
|
}
|
}
|
|
|
int main() {
|
int main() {
|
S s;
|
S s;
|
s.i = 0xabcdef01;
|
s.i = 0xabcdef01;
|
g(s);
|
g(s);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.