1// { 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 14char cv[4] = "asdf"; // { dg-error "" } missed 15 16int main () { return 0; } 17