testsuite/small/attr-7.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/ |
| 2 | int a __attribute__((unused)); |
| 3 | |
| 4 | #define __aligned(x) __attribute__((__aligned__(x))) |
| 5 | |
| 6 | struct S |
| 7 | { |
| 8 | int a; |
| 9 | } __aligned(32); |
| 10 | |
| 11 | int f(struct S *s) |
| 12 | { |
| 13 | return s->a; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-tree-dump "} __aligned\(32\);" } } */ |