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 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-effective-target lto } */
|
/* { dg-require-effective-target lto } */
|
/* { dg-options "-fwhopr -Wuninitialized -O1" } */
|
/* { dg-options "-fwhopr -Wuninitialized -O1" } */
|
|
|
template struct Q1 { typedef int x; };
|
template struct Q1 { typedef int x; };
|
template struct Q2 {
|
template struct Q2 {
|
typename Q1::x f() {
|
typename Q1::x f() {
|
int k;
|
int k;
|
return k; /* { dg-warning "'k' is used uninitialized in this function" } */
|
return k; /* { dg-warning "'k' is used uninitialized in this function" } */
|
}
|
}
|
};
|
};
|
int foo() { return Q2().f(); }
|
int foo() { return Q2().f(); }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.