libstdc++: Add missing constexpr to __atomic_impl::__clear_padding
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900324_04.C
blob70c2fbe232afca6410d12aada552acac609a503e
1 // { dg-do assemble  }
2 // g++ 1.37.1 bug 900324_04
4 // g++ implements an extension which supports the copying of array objects.
6 // This extension is not described in the current C++ Reference Manual, and
7 // it is not implemented by cfront (2.0).
9 // g++ should generate errors for the use of this extension when -pedantic
10 // is used, however it does not.
12 // Cfront 2.0 passes this test.
14 // keywords: extension, pedantic, arrays, copy
16 typedef int int_array[20];
18 int_array ia1;
19 int_array ia2;
21 void function_0 ()
23   ia1 = ia2;            // { dg-error "7:invalid array assignment" } gnu extension
26 int main () { return 0; }