Skip to content

Commit 1e992d7

Browse files
committed
C, update intersphinx test with anon
1 parent c232c74 commit 1e992d7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
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_domain_c.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,11 @@ def test_intersphinx(tempdir, app, status, warning):
689689
.. c:function:: void _function()
690690
.. c:macro:: _macro
691691
.. c:struct:: _struct
692+
693+
.. c:union:: @anon
694+
695+
.. c:var:: int i
696+
692697
.. c:union:: _union
693698
.. c:enum:: _enum
694699
@@ -713,6 +718,8 @@ def test_intersphinx(tempdir, app, status, warning):
713718
_macro c:macro 1 index.html#c.$ -
714719
_member c:member 1 index.html#c.$ -
715720
_struct c:struct 1 index.html#c.$ -
721+
_struct.@anon c:union 1 index.html#c.$ _struct.[anonymous]
722+
[email protected] c:member 1 index.html#c.$ _struct.[anonymous].i
716723
_type c:type 1 index.html#c.$ -
717724
_union c:union 1 index.html#c.$ -
718725
_var c:member 1 index.html#c.$ -

0 commit comments

Comments
 (0)