Daily bump.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900324_04.C
blobc874897e68a00cdf2a3b1cd9205e2be044adb11b
1 // g++ 1.37.1 bug 900324_04
3 // g++ implements an extension which supports the copying of array objects.
5 // This extension is not described in the current C++ Reference Manual, and
6 // it is not implemented by cfront (2.0).
8 // g++ should generate errors for the use of this extension when -pedantic
9 // is used, however it does not.
11 // Cfront 2.0 passes this test.
13 // keywords: extension, pedantic, arrays, copy
15 typedef int int_array[20];
17 int_array ia1;
18 int_array ia2;
20 void function_0 ()
22   ia1 = ia2;            // ERROR - gnu extension
25 int main () { return 0; }