summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-command-line/test-o-one-c-file.ml
blob: 0d35166787b3469bf2616f155bdc227c7b20523f (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
script = "mkdir outputdir"
*** ocamlopt.opt
all_modules = "hello.c"
compile_only = "true"
flags = "-o outputdir/hello.${objext}"
**** file-exists
file = "outputdir/hello.${objext}"
*)

(*
  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.
*)