testsute: Add expected warning for packed attribute
authorDimitar Dimitrov <dimitar@dinux.eu>
Thu, 9 Jul 2020 19:04:38 +0000 (22:04 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Tue, 21 Jul 2020 15:35:44 +0000 (18:35 +0300)
commitd5a86490962fdd550574eb0d4f5f632883e40d1c
treeab9924ebe78ffcfa03915d54c5408c72c3e3f191
parent6741411b033a7e8eae96d5a85e24e5be214757dd
testsute: Add expected warning for packed attribute

Targets which pack structures by default get warnings for packed structure
attributes. This is expected, so add markers in the test cases.

gcc/testsuite/ChangeLog:

* c-c++-common/Waddress-of-packed-member-2.c: Add dg-warning for
ignored attribute if target is default_packed.
* c-c++-common/Wattributes.c: Ditto.
* c-c++-common/attr-copy.c: Ditto.
* c-c++-common/builtin-has-attribute-4.c: Ditto.
* c-c++-common/pr51628-29.c: Ditto.
* c-c++-common/pr51628-30.c: Ditto.
* c-c++-common/pr51628-32.c: Ditto.
* gcc.dg/Wattributes-6.c: Ditto.
* gcc.dg/attr-copy-4.c: Ditto.
* gcc.dg/attr-copy-8.c: Ditto.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/c-c++-common/Waddress-of-packed-member-2.c
gcc/testsuite/c-c++-common/Wattributes.c
gcc/testsuite/c-c++-common/attr-copy.c
gcc/testsuite/c-c++-common/builtin-has-attribute-4.c
gcc/testsuite/c-c++-common/pr51628-29.c
gcc/testsuite/c-c++-common/pr51628-30.c
gcc/testsuite/c-c++-common/pr51628-32.c
gcc/testsuite/gcc.dg/Wattributes-6.c
gcc/testsuite/gcc.dg/attr-copy-4.c
gcc/testsuite/gcc.dg/attr-copy-8.c