code: def test_building_multiple_files_with_the_same_name():
      t = BoostBuild.Tester(use_test_config=False)
  
      t.write(
          "jamroot.jam",
          """\
  exe hello : hello.cpp ;
  exe hello2 : hello.cpp ;
  build-project sub ;
  """,
      )
      t.write("hello.cpp", "int main() {}\n")
      t.write(
          "sub/jamfile.jam",
          """
  exe hello : hello.cpp ;
  exe hello2 : hello.cpp ;
  exe sub : hello.cpp ;
  """,
      )
      t.write("sub/hello.cpp", "int main() {}\n")
  
      t.run_build_system([t.adjust_suffix("hello.obj")])
      t.expect_output_lines("*depends on itself*", False)
      t.expect_addition("bin/$toolset/debug*/hello.obj")
      t.expect_addition("sub/bin/$toolset/debug*/hello.obj")
      t.expect_nothing_more()
  
      t.cleanup()
  
imports: import BoostBuild
label_desc: Use image node_id 5 for calling a global function with example usage: test_building_multiple_files_with_the_same_name() without return types