Skip to content
GitLab
Menu
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
78d4de71
Commit
78d4de71
authored
Apr 19, 2009
by
mnislaih
Browse files
Make test print022 a bit stronger
parent
b3c97960
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/ghci.debugger/scripts/print022.hs
View file @
78d4de71
...
@@ -2,3 +2,10 @@
...
@@ -2,3 +2,10 @@
import
GHC.Exts
import
GHC.Exts
data
T
=
C
Int
#
Word
#
Float
#
Double
#
Char
#
Int
Float
Double
data
T
=
C
Int
#
Word
#
Float
#
Double
#
Char
#
Int
Float
Double
test
=
C
1
#
32
##
1.2
#
1.23
##
'x'
#
1
1.2
1.23
test
=
C
1
#
32
##
1.2
#
1.23
##
'x'
#
1
1.2
1.23
data
TwoFields
=
TwoFields
Char
Int
deriving
Show
data
T2
=
C2
{-# UNPACK #-}
!
Int
{-#UNPACK#-}
!
Word
{-# UNPACK #-}
!
TwoFields
deriving
Show
test2
=
C2
1
32
(
TwoFields
'a'
3
)
f
x
=
x
\ No newline at end of file
testsuite/tests/ghc-regress/ghci.debugger/scripts/print022.script
View file @
78d4de71
...
@@ -2,3 +2,8 @@
...
@@ -2,3 +2,8 @@
:l print022.hs
:l print022.hs
seq test ()
seq test ()
:print test
:print test
:break f
f test2
:step
:fo x
:t x
\ No newline at end of file
testsuite/tests/ghc-regress/ghci.debugger/scripts/print022.stdout
View file @
78d4de71
()
()
test = C 1 32 1.2 1.23 'x' 1 1.2 1.23
test = C 1 32 1.2 1.23 'x' 1 1.2 1.23
Breakpoint 0 activated at print022.hs:11:0-6
Stopped at print022.hs:11:0-6
_result :: t = _
Stopped at print022.hs:11:6
_result :: t = _
x :: t = _
x = C2 1 32 'a' 3
x :: T2
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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