code: def test_wildcards_and_exclusion_patterns():
      """
         Test that wildcards can include directories. Also test exclusion
      patterns.
  
      """
      t = BoostBuild.Tester(use_test_config=False)
  
      t.write("jamroot.jam", "")
      t.write("d1/src/foo/a.cpp", "void bar(); int main() { bar(); }\n")
      t.write("d1/src/bar/b.cpp", "void bar() {}\n")
      t.write("d1/src/bar/bad.cpp", "very bad non-compilable file\n")
      t.write(
          "d1/jamfile.jam",
          """\
  project : source-location src ;
  exe a : [ glob foo/*.cpp bar/*.cpp : bar/bad* ] ../d2/d//l ;
  """,
      )
      t.write(
          "d2/d/l.cpp",
          """\
  #if defined(_WIN32)
  __declspec(dllexport)
  void force_import_lib_creation() {}
  #endif
  """,
      )
      t.write("d2/d/jamfile.jam", "lib l : [ glob *.cpp ] ;")
  
      t.run_build_system(subdir="d1")
      t.expect_addition("d1/bin/$toolset/debug*/a.exe")
  
      t.cleanup()
  
imports: import BoostBuild
label_desc: Use image node_id 3 for calling a global function with example usage: test_wildcards_and_exclusion_patterns() without return types