Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / red-align-1.c
blobafd746772073da54206feb437fb582e72b224548
1 /* This tests aligment propagation to structure elem and
2 abcense of redundant & 7. */
4 /* { dg-options "-fdump-tree-sanopt" } */
5 /* { dg-do compile } */
6 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
8 struct st {
9 int a;
10 int b;
11 int c;
12 } __attribute__((aligned(16)));
14 int foo (struct st * s_p)
16 return s_p->a;
19 /* { dg-final { scan-tree-dump-times "& 7" 0 "sanopt" } } */
20 /* { dg-final { cleanup-tree-dump "sanopt" } } */