C, changelog and test for named variadic args

This commit is contained in:
Jakob Lykke Andersen
2020-07-27 19:35:10 +02:00
parent 15d93d2c76
commit 1b3bf4e319
3 changed files with 7 additions and 0 deletions

View File

@@ -296,6 +296,10 @@ def test_macro_definitions():
check('macro', 'M(arg, ...)', {1: 'M'})
check('macro', 'M(arg1, arg2, ...)', {1: 'M'})
check('macro', 'M(arg1, arg2, arg3, ...)', {1: 'M'})
# GNU extension
check('macro', 'M(arg1, arg2, arg3...)', {1: 'M'})
with pytest.raises(DefinitionError):
check('macro', 'M(arg1, arg2..., arg3)', {1: 'M'})
def test_member_definitions():