mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
1cf93952f4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57976 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
485 B
OCaml
17 lines
485 B
OCaml
(* RUN: %ocamlc -warn-error A llvm.cma llvm_bitwriter.cma %s -o %t 2> /dev/null
|
|
* RUN: ./%t %t.bc
|
|
* RUN: llvm-dis < %t.bc | grep caml_int_ty
|
|
*)
|
|
|
|
(* Note that this takes a moment to link, so it's best to keep the number of
|
|
individual tests low. *)
|
|
|
|
let test x = if not x then exit 1 else ()
|
|
|
|
let _ =
|
|
let m = Llvm.create_module "ocaml_test_module" in
|
|
|
|
ignore (Llvm.define_type_name "caml_int_ty" Llvm.i32_type m);
|
|
|
|
test (Llvm_bitwriter.write_bitcode_file m Sys.argv.(1))
|