| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "" } */ |
| 3 |
|
| 4 |
#define N 64 |
| 5 |
|
| 6 |
struct f { int x; }; |
| 7 |
typedef struct f T; |
| 8 |
typedef struct f T __attribute__((aligned (N))); |
| 9 |
typedef struct f T __attribute__((aligned (N * 2))); |
| 10 |
typedef struct f T __attribute__((aligned (N))); |
| 11 |
typedef struct f T; |
| 12 |
|
| 13 |
_Static_assert (_Alignof (T) == N * 2, "N * 2"); |
| 14 |
|
| 15 |
enum g { A = 1 }; |
| 16 |
typedef enum g S; |
| 17 |
typedef enum g S __attribute__((aligned (N))); |
| 18 |
typedef enum g S __attribute__((aligned (N * 2))); |
| 19 |
typedef enum g S __attribute__((aligned (N))); |
| 20 |
typedef enum g S; |
| 21 |
|
| 22 |
_Static_assert (_Alignof (S) == N * 2, "N * 2"); |
| 23 |
|