ocaml/tests/basic-test.sh
2024-06-19 08:25:18 +01:00

11 lines
192 B
Bash
Executable File

#!/bin/bash -
set -e
set -x
# Compile a trivial program and run it.
echo 'print_endline "hello, world"' > hello.ml
ocamlc.opt hello.ml -o hello
./hello
ocamlopt.opt hello.ml -o hello
./hello