code: def test_include_scan_merge_existing():
      """Make sure that files are replaced if needed when merging in
      a new directory"""
      t = BoostBuild.Tester()
  
      t.write(
          "jamroot.jam",
          """\
      import link ;
      link-directory dir1-link : src/dir1/include : <location>. ;
      link-directory dir2-link : src/dir2/include : <location>. ;
      obj test : test.cpp :
          <include>include
          <implicit-dependency>dir1-link
          <implicit-dependency>dir2-link ;
      """,
      )
  
      t.write("src/dir1/include/file1.h", "int f();")
      t.write("src/dir2/include/file2.h", "#include <file1.h>")
      t.write(
          "test.cpp",
          """\
      #include <file2.h>
      int main() { f(); }
      """,
      )
  
      t.run_build_system(["dir2-link"])
  
      t.run_build_system(["test"])
      t.expect_addition("include/file1.h")
      t.expect_addition("bin/$toolset/debug*/test.obj")
      t.ignore_touch("include/file2.h")
      t.expect_nothing_more()
  
      t.cleanup()
  
file_path: turicreate/src/external/boost/boost_1_68_0/tools/build/test/link.py
imports: import BoostBuild
label_desc: Use image node_id 10 for calling a global function with example usage: test_include_scan_merge_existing() without return types