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
8adac5d1
Commit
8adac5d1
authored
Jul 07, 2007
by
Ian Lynagh
Browse files
Add a test for -fdisambiguate-record-fields (trac
#1401
)
parent
30376b89
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/rename/should_compile/Rn059_A.hs
0 → 100644
View file @
8adac5d1
module
Rn059_A
where
data
A
=
A
{
label
::
Char
}
testsuite/tests/ghc-regress/rename/should_compile/Rn059_B.hs
0 → 100644
View file @
8adac5d1
module
Rn059_B
where
data
B
=
B
{
label
::
Char
}
testsuite/tests/ghc-regress/rename/should_compile/all.T
View file @
8adac5d1
...
...
@@ -66,6 +66,8 @@ test('rn055', normal, compile, [''])
test
('
rn056
',
normal
,
compile
,
[''])
test
('
rn057
',
normal
,
compile
,
[''])
test
('
rn058
',
normal
,
compile
,
[''])
test
('
rn059
',
normal
,
multimod_compile
,
['
rn059
',
'
-v0
'])
clean
(['
Rn059_A.hi
',
'
Rn059_A.o
',
'
Rn059_B.hi
',
'
Rn059_B.o
'])
test
('
timing001
',
normal
,
compile
,
[''])
test
('
timing002
',
normal
,
compile
,
[''])
...
...
testsuite/tests/ghc-regress/rename/should_compile/rn059.hs
0 → 100644
View file @
8adac5d1
{-# OPTIONS_GHC -fdisambiguate-record-fields #-}
module
Foo
()
where
import
Rn059_A
import
Rn059_B
a
=
A
{
label
=
'a'
}
b
=
B
{
label
=
'b'
}
f
(
A
{
label
=
a
})
(
B
{
label
=
b
})
=
(
a
,
b
)
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