summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-command-line/test-o-one-c-file.ml
blob: 04e949255bc0b649ca9ec6313c505b54298152fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(* TEST
 readonly_files = "hello.c";
 setup-ocamlopt.opt-build-env;
 script = "mkdir outputdir";
 script;
 all_modules = "hello.c";
 compile_only = "true";
 flags = "-o outputdir/hello.${objext}";
 ocamlopt.opt;
 file = "outputdir/hello.${objext}";
 file-exists;
*)

(*
  This test makes sure it is possible to specify the name of the output
  object file when compiling a C file with the OCaml compiler.
  The test does not need to contain any OCaml code.
*)