(library
 (name toplevel_expect_test)
 (modules
  (:standard \ gen))
 (libraries compiler-libs.common compiler-libs.toplevel))

(executable
 (name gen)
 (modules gen)
 (preprocess no_preprocessing))

(rule
 (targets toplevel_expect_test.ml)
 (deps
  ./gen.exe
  (glob_files toplevel_expect_test.ml-*))
 (action
  (with-stdout-to
   %{targets}
   (run %{deps}))))
