1 /* { dg-do compile } */
2 /* { dg-options "-w -fdump-tree-original" } */
4 char c1
__attribute__ ((aligned (1)));
5 char c2
__attribute__ ((aligned (2)));
6 char c4
__attribute__ ((aligned (4)));
7 char c8
__attribute__ ((aligned (8)));
10 return 3 & (__SIZE_TYPE__
)&c1
;
15 return 3 & (__SIZE_TYPE__
)&c2
;
20 return 3 & (__SIZE_TYPE__
)&c4
;
25 return 3 & (__SIZE_TYPE__
)&c8
;
28 /* { dg-final { scan-tree-dump-times "\&c1 \& 3" 1 "original" } } */
29 /* { dg-final { scan-tree-dump-times "\&c2 \& 3" 1 "original" } } */
30 /* { dg-final { scan-tree-dump-times "\&c4 \& 3" 0 "original" } } */
31 /* { dg-final { scan-tree-dump-times "\&c8 \& 3" 0 "original" } } */
32 /* { dg-final { scan-tree-dump-times "return 0" 2 "original" } } */
33 /* { dg-final { cleanup-tree-dump "original" } } */