testsuite: Fix g++.dg/ext/attr-copy-2.C for default_packed targets
commit4ea6bfedc8759cef739ae42eee162989112bd85a
authorHans-Peter Nilsson <hp@axis.com>
Wed, 1 Mar 2023 17:55:27 +0000 (1 18:55 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Thu, 2 Mar 2023 01:16:20 +0000 (2 02:16 +0100)
treee3032dbd91b1bb5cf2cdf9d65350bfb2b5213228
parentb838a9f65f68f9ebe87d4cbd10ae18911a05b6ea
testsuite: Fix g++.dg/ext/attr-copy-2.C for default_packed targets

For targets where the byte-wise structure element layout is
the same as for attribute-packed, you get a warning when
that's specified.  Thus, expect a warning for such targets.
Note the exclusion of bitfields.

* g++.dg/ext/attr-copy-2.C: Fix for default_packed targets.
gcc/testsuite/g++.dg/ext/attr-copy-2.C