Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/asan/red-align-2.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* This tests aligment propagation to structure elem and |
2 abcense of redundant & 7. */ | |
3 | |
4 /* { dg-options "-fdump-tree-sanopt" } */ | |
5 /* { dg-do compile } */ | |
6 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */ | |
7 | |
8 struct st { | |
9 int a; | |
10 int b; | |
11 int c; | |
12 } __attribute__((aligned(16))); | |
13 | |
14 int foo (struct st * s_p) | |
15 { | |
16 return s_p->b; | |
17 } | |
18 | |
19 /* { dg-final { scan-tree-dump-times "& 7" 1 "sanopt" } } */ |