URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR 13898
|
// PR 13898
|
// Make sure the two X variables get assigned unique assembler names
|
// Make sure the two X variables get assigned unique assembler names
|
// if they are promoted to static storage.
|
// if they are promoted to static storage.
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
int g(int i) {
|
int g(int i) {
|
if (i<1) {
|
if (i<1) {
|
const int x[3] = { 1,2,3 };
|
const int x[3] = { 1,2,3 };
|
return x[i];
|
return x[i];
|
} else {
|
} else {
|
const int x[3] = { 4,5,6 };
|
const int x[3] = { 4,5,6 };
|
return x[i];
|
return x[i];
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.