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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900404_01.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
// g++ 1.37.1 bug 900404_01
// g++ 1.37.1 bug 900404_01
// g++ allows string initializers for known-length character arrays to be
// g++ allows string initializers for known-length character arrays to be
// one character longer (counting the terminating null) than the actual
// one character longer (counting the terminating null) than the actual
// length of the array to be initialized.
// length of the array to be initialized.
// The C++ Reference Manual (section 8.4.2) expressly prohibits this.
// The C++ Reference Manual (section 8.4.2) expressly prohibits this.
// Cfront 2.0 passes this test.
// Cfront 2.0 passes this test.
// keywords: arrays, initialization, array bounds
// keywords: arrays, initialization, array bounds
char cv[4] = "asdf";            // { dg-error "" } missed
char cv[4] = "asdf";            // { dg-error "" } missed
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.