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
1c050ed2
Commit
1c050ed2
authored
Jan 23, 2023
by
Matthew Pickering
Committed by
Marge Bot
Jan 24, 2023
Browse files
Add test for T22671
This was fixed by
b13c6ea5
Closes
#22671
parent
34d2d463
Pipeline
#62013
passed with stages
in 123 minutes and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/numeric/should_run/T22671.hs
0 → 100644
View file @
1c050ed2
module
Main
where
import
Data.Bits
import
Control.Monad
main
::
IO
()
main
=
unless
(
length
(
show
(
1
`
shiftL
`
(
1
`
shiftL
`
20
)
::
Integer
))
==
315653
)
(
error
"Incorrect result for bignum calculation"
)
testsuite/tests/numeric/should_run/all.T
View file @
1c050ed2
...
...
@@ -79,4 +79,5 @@ test('IntegerToFloat', normal, compile_and_run, [''])
test
('
T20291
',
normal
,
compile_and_run
,
[''])
test
('
T22282
',
normal
,
compile_and_run
,
[''])
test
('
T22671
',
normal
,
compile_and_run
,
[''])
test
('
foundation
',
normal
,
compile_and_run
,
['
-O -package transformers
'])
Marge Bot
💬
@marge-bot
mentioned in merge request
!9781 (closed)
·
Jan 24, 2023
mentioned in merge request
!9781 (closed)
mentioned in merge request !9781
Toggle commit list
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