Fix member alignment for all targets [PR103751].

Resolves:
PR testsuite/103751 - FAIL: gcc.dg/Warray-bounds-48.c (test for excess errors)

gcc/testsuite/ChangeLog:
	PR testsuite/103751
	* gcc.dg/Warray-bounds-48.c: Fix member alignment.
This commit is contained in:
Martin Sebor 2021-12-16 12:28:03 -07:00
parent bb2a7f80a9
commit f91814c225
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ void test_a0 (struct A0 *p, unsigned n)
struct A1
{
int32_t n;
__attribute__ ((aligned (4)))
int16_t a1[1]; // { dg-message "while referencing 'a1'" }
};