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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900404_01.C] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// g++ 1.37.1 bug 900404_01
3
 
4
// g++ allows string initializers for known-length character arrays to be
5
// one character longer (counting the terminating null) than the actual
6
// length of the array to be initialized.
7
 
8
// The C++ Reference Manual (section 8.4.2) expressly prohibits this.
9
 
10
// Cfront 2.0 passes this test.
11
 
12
// keywords: arrays, initialization, array bounds
13
 
14
char cv[4] = "asdf";            // { dg-error "" } missed
15
 
16
int main () { return 0; }

powered by: WebSVN 2.1.0

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