code: def test_diamond_inheritance():
      """Tests that diamond inheritance works as expected (issue #959)"""
  
      # Issue #959: this shouldn't segfault:
      d = m.D()
  
      # Make sure all the various distinct pointers are all recognized as registered instances:
      assert d is d.c0()
      assert d is d.c1()
      assert d is d.b()
      assert d is d.c0().b()
      assert d is d.c1().b()
      assert d is d.c0().c1().b().c0().b()
  
imports: import pytest
  import env
  from pybind11_tests import ConstructorStats
  from pybind11_tests import multiple_inheritance
label_desc: Use image node_id 11 for calling a global function with example usage: test_diamond_inheritance() without return types