C and C++, fix nested paramter lists

This commit is contained in:
Jakob Lykke Andersen
2021-03-04 21:28:18 +01:00
parent cba9ed0bb5
commit 72e231d0e6
5 changed files with 41 additions and 16 deletions

View File

@@ -420,6 +420,9 @@ def test_function_definitions():
with pytest.raises(DefinitionError):
parse('function', 'void f(int for)')
# from #8960
check('function', 'void f(void (*p)(int, double), int i)', {1: 'f'})
def test_nested_name():
check('struct', '{key}.A', {1: "A"})