6_5_3_4_03_alignof_expr.c (286B)
1 /* GNU extension: `__alignof__(expr)` accepts an expression operand, not 2 * just a type-name. ยง6.5.3.4 specifies type-name only for ISO `_Alignof`, 3 * but `__alignof__` mirrors `sizeof` and accepts an expression. */ 4 int test_main(void) { 5 int x; 6 (void)__alignof__(x); 7 return 0; 8 }