Skip to content

Commit a635156

Browse files
committed
C, update intersphinx test with anon
1 parent 74e08b6 commit a635156

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

tests/roots/test-domain-c-intersphinx/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,12 @@
6060
- :c:member:`_functionParam.param`
6161
- :c:var:`_functionParam.param`
6262
- :c:data:`_functionParam.param`
63+
64+
65+
- :c:member:`[email protected]`
66+
67+
- :c:data:`[email protected]`
68+
- :any:`_struct.i`
69+
- :c:member:`_struct.i`
70+
- :c:var:`_struct.i`
71+
- :c:data:`_struct.i`

tests/test_domains/test_domain_c.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,10 +742,15 @@ def test_domain_c_build_intersphinx(tmp_path, app, status, warning):
742742
.. c:function:: void _function()
743743
.. c:macro:: _macro
744744
.. c:struct:: _struct
745+
746+
.. c:union:: @anon
747+
748+
.. c:var:: int i
749+
745750
.. c:union:: _union
746751
.. c:enum:: _enum
747752
748-
.. c:enumerator:: _enumerator
753+
.. c:enumerator:: _enumerator
749754
750755
.. c:type:: _type
751756
.. c:function:: void _functionParam(int param)
@@ -766,6 +771,8 @@ def test_domain_c_build_intersphinx(tmp_path, app, status, warning):
766771
_macro c:macro 1 index.html#c.$ -
767772
_member c:member 1 index.html#c.$ -
768773
_struct c:struct 1 index.html#c.$ -
774+
_struct.@anon c:union 1 index.html#c.$ _struct.[anonymous]
775+
[email protected] c:member 1 index.html#c.$ _struct.[anonymous].i
769776
_type c:type 1 index.html#c.$ -
770777
_union c:union 1 index.html#c.$ -
771778
_var c:member 1 index.html#c.$ -

0 commit comments

Comments
 (0)