code: def test_domain_c_build_intersphinx(tmp_path, app, status, warning):
      # a splitting of test_ids_vs_tags0 into the primary directives in a remote project,
      # and then the references in the test project
      origSource = """\
  .. c:member:: int _member
  .. c:var:: int _var
  .. c:function:: void _function()
  .. c:macro:: _macro
  .. c:struct:: _struct
  .. c:union:: _union
  .. c:enum:: _enum
  
      .. c:enumerator:: _enumerator
  
  .. c:type:: _type
  .. c:function:: void _functionParam(int param)
  """  # noqa: F841
      inv_file = tmp_path / "inventory"
      inv_file.write_bytes(
          b"""\
  # Sphinx inventory version 2
  # Project: C Intersphinx Test
  # Version: 
  # The remainder of this file is compressed using zlib.
  """
          + zlib.compress(
              b"""\
  _enum c:enum 1 index.html#c.$ -
  _enum._enumerator c:enumerator 1 index.html#c.$ -
  _enumerator c:enumerator 1 index.html#c._enum.$ -
  _function c:function 1 index.html#c.$ -
  _functionParam c:function 1 index.html#c.$ -
  _functionParam.param c:functionParam 1 index.html#c._functionParam -
  _macro c:macro 1 index.html#c.$ -
  _member c:member 1 index.html#c.$ -
  _struct c:struct 1 index.html#c.$ -
  _type c:type 1 index.html#c.$ -
  _union c:union 1 index.html#c.$ -
  _var c:member 1 index.html#c.$ -
  """
          )
      )  # noqa: W291
      app.config.intersphinx_mapping = {
          "https://localhost/intersphinx/c/": str(inv_file),
      }
      app.config.intersphinx_cache_limit = 0
      # load the inventory and check if it's done correctly
      normalize_intersphinx_mapping(app, app.config)
      load_mappings(app)
  
      app.build(force_all=True)
      ws = filter_warnings(warning, "index")
      assert len(ws) == 0
  
imports: import itertools
  import zlib
  from xml.etree import ElementTree
  import pytest
  from sphinx import addnodes
  from sphinx.addnodes import desc, desc_content, desc_name, desc_parameter, desc_parameterlist, desc_sig_name, desc_sig_space, desc_signature, desc_signature_line, pending_xref
  from sphinx.domains.c import DefinitionError, DefinitionParser, Symbol, _id_prefix, _macroKeywords, _max_id
  from sphinx.ext.intersphinx import load_mappings, normalize_intersphinx_mapping
  from sphinx.testing import restructuredtext
  from sphinx.testing.util import assert_node
  from sphinx.writers.text import STDINDENT
label_desc: Use image node_id 29 for calling a global function with example usage: test_domain_c_build_intersphinx(tmp_path, app, status, warning) without return types