URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Test that failed lvalue-to-rvalue conversion of vf doesn't crash the
|
// Test that failed lvalue-to-rvalue conversion of vf doesn't crash the
|
// compiler.
|
// compiler.
|
|
|
class f_class
|
class f_class
|
{ }; // { dg-message "candidates" "candidates" }
|
{ }; // { dg-message "candidates" "candidates" }
|
// { dg-message "note" "note" { target *-*-* } 6 }
|
// { dg-message "note" "note" { target *-*-* } 6 }
|
|
|
volatile f_class
|
volatile f_class
|
ret_v_f_class()
|
ret_v_f_class()
|
{
|
{
|
f_class t;
|
f_class t;
|
return t;
|
return t;
|
}
|
}
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
volatile f_class vf;
|
volatile f_class vf;
|
0 ? ret_v_f_class() : vf; // { dg-error "match" } can't copy volatile lvalue
|
0 ? ret_v_f_class() : vf; // { dg-error "match" } can't copy volatile lvalue
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.