Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.bugs/900324_04.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do assemble } // g++ 1.37.1 bug 900324_04 // g++ implements an extension which supports the copying of array objects. // This extension is not described in the current C++ Reference Manual, and // it is not implemented by cfront (2.0). // g++ should generate errors for the use of this extension when -pedantic // is used, however it does not. // Cfront 2.0 passes this test. // keywords: extension, pedantic, arrays, copy typedef int int_array[20]; int_array ia1; int_array ia2; void function_0 () { ia1 = ia2; // { dg-error "7:invalid array assignment" } gnu extension } int main () { return 0; }