URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-options "-std=gnu++0x" }
|
// { dg-options "-std=gnu++0x" }
|
template
|
template
|
struct array {
|
struct array {
|
static const int value = 0;
|
static const int value = 0;
|
};
|
};
|
|
|
template<>
|
template<>
|
struct array {
|
struct array {
|
static const int value = 1;
|
static const int value = 1;
|
};
|
};
|
|
|
template
|
template
|
struct array {
|
struct array {
|
static const int value = 2;
|
static const int value = 2;
|
};
|
};
|
|
|
template
|
template
|
struct array {
|
struct array {
|
static const int value = 3;
|
static const int value = 3;
|
};
|
};
|
|
|
int a0[array::value == 0? 1 : -1];
|
int a0[array::value == 0? 1 : -1];
|
int a1[array::value == 1? 1 : -1];
|
int a1[array::value == 1? 1 : -1];
|
int a2[array::value == 2? 1 : -1];
|
int a2[array::value == 2? 1 : -1];
|
int a3[array::value == 3? 1 : -1];
|
int a3[array::value == 3? 1 : -1];
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.