Merge pull request #7708 from jakobandersen/c_cpp_fix_test_typo

C, C++: fix typo in tests
This commit is contained in:
Jakob Lykke Andersen 2020-05-22 16:25:57 +02:00 committed by GitHub
commit 589df567c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -400,7 +400,7 @@ def test_function_definitions():
output='void f(int arr[static volatile const 42])')
class test_nested_name():
def test_nested_name():
check('struct', '{key}.A', {1: "A"})
check('struct', '{key}.A.B', {1: "A.B"})
check('function', 'void f(.A a)', {1: "f"})

View File

@ -663,7 +663,7 @@ def test_operators():
check('function', 'void operator[]()', {1: "subscript-operator", 2: "ixv"})
class test_nested_name():
def test_nested_name():
check('class', '{key}::A', {1: "A", 2: "1A"})
check('class', '{key}::A::B', {1: "A::B", 2: "N1A1BE"})
check('function', 'void f(::A a)', {1: "f__A", 2: "1f1A"})