src/HOL/Codegenerator_Test/Code_Test_GHC.thy
author blanchet
Thu, 11 Sep 2014 18:54:36 +0200
changeset 58299 30ab8289f0e1
parent 58039 469a375212c1
child 58348 2d47c7d10b62
permissions -rw-r--r--
took out some datatype tests for Refute -- these yield timeouts on some Isatests after transition to new datatypes, for some reason (and Refute is obsolete anyway)

(*  Title:      Code_Test_GHC.thy
    Author:     Andreas Lochbihler, ETH Zurich

Test case for test_code on GHC
*)

theory Code_Test_GHC imports Code_Test begin

definition id_integer :: "integer \<Rightarrow> integer" where "id_integer = id"

test_code "id_integer (14 + 7 * -12) = 140 div -2" in GHC

eval_term "14 + 7 * -12 :: integer" in GHC

end