URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/34094
|
// PR c++/34094
|
// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } }
|
// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } }
|
// { dg-options "-g" }
|
// { dg-options "-g" }
|
|
|
namespace {
|
namespace {
|
struct c
|
struct c
|
{
|
{
|
static const bool t = 0;
|
static const bool t = 0;
|
};
|
};
|
}
|
}
|
|
|
const bool &f()
|
const bool &f()
|
{
|
{
|
return c::t; // { dg-message "undefined" "undefined" { target *-*-* } 0 }
|
return c::t; // { dg-message "undefined" "undefined" { target *-*-* } 0 }
|
// Some targets report the error for the previous line, others
|
// Some targets report the error for the previous line, others
|
// don't give line number inforamtion for it, so use line 0.
|
// don't give line number inforamtion for it, so use line 0.
|
}
|
}
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.