If we put cls_rule at the beginning of struct test_rule, then a cast is
sufficient to convert a pointer between the two, but we want to make sure
that we don't ever take that shortcut, because it is not valid in general.
#include <assert.h>
struct test_rule {
- struct cls_rule cls_rule; /* Classifier rule data. */
int aux; /* Auxiliary data. */
+ struct cls_rule cls_rule; /* Classifier rule data. */
};
static struct test_rule *