diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2022-04-17 17:17:19 +0200 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2022-04-17 17:17:19 +0200 |
commit | 991fe26fa5683bb76a925389024d375c6bb11dba (patch) | |
tree | ce60b5bc9d132660e599b03b9f8a65bb7a4d233e /tests/test_domain_c.py | |
parent | d951e55bc3419dbda809ed0aca17addeed8e9e30 (diff) | |
download | sphinx-git-991fe26fa5683bb76a925389024d375c6bb11dba.tar.gz |
C and C++, refactor attribute lists
Diffstat (limited to 'tests/test_domain_c.py')
-rw-r--r-- | tests/test_domain_c.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_domain_c.py b/tests/test_domain_c.py index 16a71d9fe..dcae320e3 100644 --- a/tests/test_domain_c.py +++ b/tests/test_domain_c.py @@ -573,10 +573,10 @@ def test_domain_c_ast_attributes(): output='__attribute__(()) static inline void f()') check('function', '[[attr1]] [[attr2]] void f()', {1: 'f'}) # position: declarator - check('member', 'int *[[attr]] i', {1: 'i'}) - check('member', 'int *const [[attr]] volatile i', {1: 'i'}, - output='int *[[attr]] volatile const i') - check('member', 'int *[[attr]] *i', {1: 'i'}) + check('member', 'int *[[attr1]] [[attr2]] i', {1: 'i'}) + check('member', 'int *const [[attr1]] [[attr2]] volatile i', {1: 'i'}, + output='int *[[attr1]] [[attr2]] volatile const i') + check('member', 'int *[[attr1]] [[attr2]] *i', {1: 'i'}) # position: parameters check('function', 'void f() [[attr1]] [[attr2]]', {1: 'f'}) |