...
The operand passed to_Alignof
is never evaluated, despite not being an expression. For instance, if the operand is a VLA type, and the value of the VLA's size expression contains a side effect, that side effect is never evaluated.
The operand used in the controlling expression of a _genericGeneric
selection expression is never evaluated.
...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stdio.h> void func(void) { int val = 0; /* ... */ size_t align = _Alignof(int[++val]); printf("%z%zu, %d\n", align, val); /* ... */ } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stdio.h> void func(void) { int val = 0; /* ... */ ++val; size_t align = _Alignof(int[val]); printf("%z%zu, %d\n, align, val); /* ... */ } |
...