2 // g++ 1.37.1 bug 900404_01
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.
8 // The C++ Reference Manual (section 8.4.2) expressly prohibits this.
10 // Cfront 2.0 passes this test.
12 // keywords: arrays, initialization, array bounds
14 char cv[4] = "asdf"; // { dg-error "" } missed
16 int main () { return 0; }