summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-command-line/test-o-several-files.ml
blob: 090ace5043324cafd251a760756694b10b917e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(* TEST
* setup-ocamlopt.opt-build-env
** ocamlopt.opt
all_modules = "foo.c bar.c"
compile_only = "true"
flags = "-o outputdir/baz.${objext}"
ocamlopt_opt_exit_status = "2"
*** check-ocamlopt.opt-output
*)

(*
  This test makes sure that the -o option is rejected when trying to
  compile several C files during the same invocatin of the OCaml compiler.
  The test does not need to contain any OCaml code.
*)