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 }
|
// g++ 1.37.1 bug 900324_05
|
// g++ 1.37.1 bug 900324_05
|
|
|
// The following erroneous code causes g++ to segfault.
|
// The following erroneous code causes g++ to segfault.
|
|
|
// Cfront 2.0 passes this test.
|
// Cfront 2.0 passes this test.
|
|
|
// keywords: segfault, arrays, references, assignment operator=
|
// keywords: segfault, arrays, references, assignment operator=
|
|
|
typedef int int_array[];
|
typedef int int_array[];
|
|
|
extern int_array int_array_object;
|
extern int_array int_array_object;
|
|
|
int_array &left = int_array_object;
|
int_array &left = int_array_object;
|
int_array &right = int_array_object;
|
int_array &right = int_array_object;
|
|
|
void function ()
|
void function ()
|
{
|
{
|
left = right; // { dg-error "" } causes segfault
|
left = right; // { dg-error "" } causes segfault
|
}
|
}
|
|
|
int main () { return 0; }
|
int main () { return 0; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.