We should provide a cfg way to identify a union or struct field as anonymous. This can probably be a is_field_anonymous function that would make ctest "inline" the relevant tests.
This discussion was started at #4610 (comment) but I don't think we actually need that tricky regex pattern.