d83b47646e
Union branch names should use '-', not '_'. Enforce this. The only offenders are in tests/. Fix them. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-29-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> [Commit message typo fixed]
8 lines
353 B
JSON
8 lines
353 B
JSON
# Union branch name collision
|
|
# Naming rules make collision impossible (even with the pragma). If
|
|
# that wasn't the case, then we'd get collisions in generated C: two
|
|
# union members a_b, and two enum members TEST_UNION_A_B.
|
|
{ 'pragma': { 'member-name-exceptions': [ 'TestUnion' ] } }
|
|
{ 'union': 'TestUnion',
|
|
'data': { 'a-b': 'int', 'a_b': 'str' } }
|