From: sof Date: Tue, 10 Nov 1998 08:50:51 +0000 (+0000) Subject: [project @ 1998-11-10 08:50:50 by sof] X-Git-Tag: Approx_2487_patches~211 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=243e568758684337c621d4c7041576341882d6dc;p=ghc-hetmet.git [project @ 1998-11-10 08:50:50 by sof] _casm_ unfolding test --- diff --git a/ghc/tests/reader/should_compile/Makefile b/ghc/tests/reader/should_compile/Makefile index d55ad91..1eb42d5 100644 --- a/ghc/tests/reader/should_compile/Makefile +++ b/ghc/tests/reader/should_compile/Makefile @@ -2,8 +2,10 @@ TOP = ../.. include $(TOP)/mk/boilerplate.mk include $(TOP)/mk/should_compile.mk -SRC_HC_OPTS += -noC -dcore-lint +SRC_HC_OPTS += -dcore-lint read004_HC_OPTS = -fno-implicit-prelude +read012_HC_OPTS += -O -funfold-casms-in-hi-file -fglasgow-exts +read013_HC_OPTS += -O -funfold-casms-in-hi-file -fglasgow-exts include $(TOP)/mk/target.mk diff --git a/ghc/tests/reader/should_compile/read012.hs b/ghc/tests/reader/should_compile/read012.hs new file mode 100644 index 0000000..a667c9e --- /dev/null +++ b/ghc/tests/reader/should_compile/read012.hs @@ -0,0 +1,3 @@ +module T1 where +malloc :: IO Int +malloc = _casm_ ``%r = 42;'' diff --git a/ghc/tests/reader/should_compile/read013.hs b/ghc/tests/reader/should_compile/read013.hs new file mode 100644 index 0000000..214e20f --- /dev/null +++ b/ghc/tests/reader/should_compile/read013.hs @@ -0,0 +1,4 @@ +module T2 where +import T1 +blah :: IO Int +blah = malloc