Changeset View
Changeset View
Standalone View
Standalone View
test/Bindings/OCaml/core.ml
(* RUN: cp %s %T/core.ml | (* RUN: rm -rf %t && mkdir -p %t && cp %s %t/core.ml | ||||
* RUN: %ocamlc -g -w +A -package llvm.analysis -package llvm.bitwriter -linkpkg %T/core.ml -o %t | * RUN: %ocamlc -g -w +A -package llvm.analysis -package llvm.bitwriter -linkpkg %t/core.ml -o %t/executable | ||||
* RUN: %t %t.bc | * RUN: %t/executable %t/bitcode.bc | ||||
* RUN: %ocamlopt -g -w +A -package llvm.analysis -package llvm.bitwriter -linkpkg %T/core.ml -o %t | * RUN: %ocamlopt -g -w +A -package llvm.analysis -package llvm.bitwriter -linkpkg %t/core.ml -o %t/executable | ||||
* RUN: %t %t.bc | * RUN: %t/executable %t/bitcode.bc | ||||
* RUN: llvm-dis < %t.bc > %t.ll | * RUN: llvm-dis < %t/bitcode.bc > %t/dis.ll | ||||
* RUN: FileCheck %s < %t.ll | * RUN: FileCheck %s < %t/dis.ll | ||||
* Do a second pass for things that shouldn't be anywhere. | * Do a second pass for things that shouldn't be anywhere. | ||||
* RUN: FileCheck -check-prefix=CHECK-NOWHERE %s < %t.ll | * RUN: FileCheck -check-prefix=CHECK-NOWHERE %s < %t/dis.ll | ||||
* XFAIL: vg_leak | * XFAIL: vg_leak | ||||
*) | *) | ||||
(* Note: It takes several seconds for ocamlopt to link an executable with | (* Note: It takes several seconds for ocamlopt to link an executable with | ||||
libLLVMCore.a, so it's better to write a big test than a bunch of | libLLVMCore.a, so it's better to write a big test than a bunch of | ||||
little ones. *) | little ones. *) | ||||
open Llvm | open Llvm | ||||
▲ Show 20 Lines • Show All 1,547 Lines • Show Last 20 Lines |