OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900324_04.C] - Diff between revs 305 and 338

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_04
// g++ 1.37.1 bug 900324_04
// g++ implements an extension which supports the copying of array objects.
// g++ implements an extension which supports the copying of array objects.
// This extension is not described in the current C++ Reference Manual, and
// This extension is not described in the current C++ Reference Manual, and
// it is not implemented by cfront (2.0).
// it is not implemented by cfront (2.0).
// g++ should generate errors for the use of this extension when -pedantic
// g++ should generate errors for the use of this extension when -pedantic
// is used, however it does not.
// is used, however it does not.
// Cfront 2.0 passes this test.
// Cfront 2.0 passes this test.
// keywords: extension, pedantic, arrays, copy
// keywords: extension, pedantic, arrays, copy
typedef int int_array[20];
typedef int int_array[20];
int_array ia1;
int_array ia1;
int_array ia2;
int_array ia2;
void function_0 ()
void function_0 ()
{
{
  ia1 = ia2;            // { dg-error "" } gnu extension
  ia1 = ia2;            // { dg-error "" } gnu extension
}
}
int main () { return 0; }
int main () { return 0; }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.