Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
9854f14e
Commit
9854f14e
authored
Jun 30, 2016
by
niteria
Browse files
Add a new determinism test
This is one of the testcases that I forgot to commit
parent
fb6e2c7f
Changes
5
Hide whitespace changes
Inline
Side-by-side
testsuite/driver/extra_files.py
View file @
9854f14e
...
...
@@ -202,6 +202,7 @@ extra_src_files = {
'determ017'
:
[
'A.hs'
],
'determ018'
:
[
'A.hs'
],
'determ019'
:
[
'A.hs'
],
'determ021'
:
[
'A.hs'
],
'dodgy'
:
[
'DodgyA.hs'
],
'driver011'
:
[
'A011.hs'
],
'driver012'
:
[
'A012.hs'
],
...
...
testsuite/tests/determinism/determ021/A.hs
0 → 100644
View file @
9854f14e
{-# LANGUAGE ApplicativeDo #-}
{-# OPTIONS_GHC -ddump-types #-}
module
A
where
test2
f
=
do
x
<-
f
3
y
<-
f
4
return
(
x
+
y
)
testsuite/tests/determinism/determ021/Makefile
0 → 100644
View file @
9854f14e
TOP
=
../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
determ021
:
$(RM)
A.hi A.o
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
-O
-dinitial-unique
=
0
-dunique-increment
=
1 A.hs
$(CP)
A.hi A.normal.hi
$(RM)
A.hi A.o
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
-O
-dinitial-unique
=
16777215
-dunique-increment
=
-1
A.hs
diff A.hi A.normal.hi
testsuite/tests/determinism/determ021/all.T
0 → 100644
View file @
9854f14e
test
('
determ021
',
extra_clean
(['
A.o
',
'
A.hi
',
'
A.normal.hi
']),
run_command
,
['
$MAKE -s --no-print-directory determ021
'])
testsuite/tests/determinism/determ021/determ021.stdout
0 → 100644
View file @
9854f14e
[1 of 1] Compiling A ( A.hs, A.o )
TYPE SIGNATURES
test2 ::
forall t b (f :: * -> *).
(Num b, Num t, Applicative f) =>
(t -> f b) -> f b
TYPE CONSTRUCTORS
COERCION AXIOMS
Dependent modules: []
Dependent packages: [base-4.9.0.0, ghc-prim-0.5.0.0,
integer-gmp-1.0.0.1]
[1 of 1] Compiling A ( A.hs, A.o )
TYPE SIGNATURES
test2 ::
forall t b (f :: * -> *).
(Num b, Num t, Applicative f) =>
(t -> f b) -> f b
TYPE CONSTRUCTORS
COERCION AXIOMS
Dependent modules: []
Dependent packages: [base-4.9.0.0, ghc-prim-0.5.0.0,
integer-gmp-1.0.0.1]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment