diff options
author | Martin Sebor <msebor@redhat.com> | 2021-12-16 12:28:03 -0700 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-12-16 12:34:24 -0700 |
commit | f91814c22595e1db642140efe030caf2c092ab6f (patch) | |
tree | aa051761c8104a5c70eee7856382224463e52a97 /gcc | |
parent | bb2a7f80a98de3febefbb32b1e4898062bdb6af8 (diff) | |
download | gcc-f91814c22595e1db642140efe030caf2c092ab6f.zip gcc-f91814c22595e1db642140efe030caf2c092ab6f.tar.gz gcc-f91814c22595e1db642140efe030caf2c092ab6f.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/Warray-bounds-48.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-48.c b/gcc/testsuite/gcc.dg/Warray-bounds-48.c index 29b2086..775b301 100644 --- a/gcc/testsuite/gcc.dg/Warray-bounds-48.c +++ b/gcc/testsuite/gcc.dg/Warray-bounds-48.c @@ -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'" } }; |