Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
9ce49f6c
Commit
9ce49f6c
authored
Apr 19, 2011
by
simonpj
Browse files
Test Trac
#5038
parent
b534b270
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/rebindable/T5038.hs
0 → 100644
View file @
9ce49f6c
{-# LANGUAGE RebindableSyntax #-}
module
Main
(
main
)
where
import
Prelude
ifThenElse
True
t
f
=
f
ifThenElse
False
t
f
=
t
main
=
print
(
if
True
then
1
else
2
::
Int
)
-- Should print 2!
testsuite/tests/ghc-regress/rebindable/T5038.stdout
0 → 100644
View file @
9ce49f6c
2
testsuite/tests/ghc-regress/rebindable/all.T
View file @
9ce49f6c
...
...
@@ -27,3 +27,4 @@ test('T303', normal, compile, [''])
# Tests from Oleg
test
('
DoRestrictedM
',
normal
,
compile
,
[''])
test
('
DoParamM
',
reqlib
('
mtl
'),
compile_fail
,
[''])
test
('
T5038
',
normal
,
compile_and_run
,
[''])
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