1 /** Tests covering alignment operators.
11 #if defined (__SDCC) || __STDC_VERSION__ >= 201112L
13 char alignas (0) alignas({sign
} {type
}) a
;
14 char alignas (int) alignas({sign
} {type
}) alignas(long) b
;
15 char alignas ({sign
} {type
}) alignas(0) c
;
21 #if defined (__SDCC) || __STDC_VERSION__ >= 201112L
22 ASSERT(alignof(char) <= alignof({sign
} {type
}));
23 ASSERT(alignof({sign
} {type
}) <= alignof(max_align_t
));
26 /* sdcc currently only supports architectures that do not have alignment restrictions. */
27 ASSERT(alignof({sign
} {type
}) == 1);
28 ASSERT(alignof(max_align_t
) == 1);