URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-do "run" }
|
// { dg-do "run" }
|
// { dg-options "-std=gnu++0x" }
|
// { dg-options "-std=gnu++0x" }
|
template struct bomb;
|
template struct bomb;
|
|
|
template
|
template
|
struct bomb {
|
struct bomb {
|
static const T value = 0;
|
static const T value = 0;
|
};
|
};
|
|
|
template
|
template
|
struct bomb {
|
struct bomb {
|
static const T value = v + bomb::value;
|
static const T value = v + bomb::value;
|
};
|
};
|
|
|
extern "C" void abort();
|
extern "C" void abort();
|
|
|
int main() {
|
int main() {
|
bomb b;
|
bomb b;
|
if (b.value != 10)
|
if (b.value != 10)
|
abort();
|
abort();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.