testsuite: Skip cases for default_packed targets
authorDimitar Dimitrov <dimitar@dinux.eu>
Fri, 15 Apr 2022 19:58:50 +0000 (22:58 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Tue, 3 May 2022 18:56:15 +0000 (21:56 +0300)
commit8381665fdd0ba9bea2ef6274cd995cf591677de3
treeb9c828b021d8ccf153e72a32954e598aadce8ce2
parent0a7c4d6b67f15d6c51fbc71325d9d2f31d96f794
testsuite: Skip cases for default_packed targets

The memchr test cases expect padding to be present in structures.  But
this is not true for targets which pack by default.  Skip these test
cases in order to avoid static assert errors when checking field offsets.

gcc/testsuite/ChangeLog:

* gcc.dg/memchr.c: Skip for default_packed targets.
* gcc.dg/memcmp-3.c: Ditto.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/memchr.c
gcc/testsuite/gcc.dg/memcmp-3.c