Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gershomb
GHC
Commits
4e45ebee
Commit
4e45ebee
authored
6 years ago
by
Joachim Breitner
Browse files
Options
Downloads
Patches
Plain Diff
Add test case for #15108
thanks to cdisselkoen for the nicely minimized test case.
parent
6da5b877
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/tests/profiling/should_compile/T15108.hs
+22
-0
22 additions, 0 deletions
testsuite/tests/profiling/should_compile/T15108.hs
testsuite/tests/profiling/should_compile/all.T
+1
-0
1 addition, 0 deletions
testsuite/tests/profiling/should_compile/all.T
with
23 additions
and
0 deletions
testsuite/tests/profiling/should_compile/T15108.hs
0 → 100644
+
22
−
0
View file @
4e45ebee
module
Main
where
main
::
IO
()
main
=
do
_
<-
return
$
getInt
Circle
return
()
newtype
MyInt
=
MyInt
Int
data
Shape
=
Circle
|
Square
getInt
::
Shape
->
MyInt
getInt
sh
=
case
sh
of
Circle
->
let
(
MyInt
i
)
=
MyInt
3
in
myInt
i
Square
->
let
(
MyInt
i
)
=
MyInt
2
in
myInt
i
where
myInt
=
MyInt
This diff is collapsed.
Click to expand it.
testsuite/tests/profiling/should_compile/all.T
+
1
−
0
View file @
4e45ebee
...
...
@@ -7,3 +7,4 @@ test('T2410', [only_ways(['normal']), req_profiling], compile, ['-O2 -prof -fpro
test
('
T5889
',
[
only_ways
(['
normal
']),
req_profiling
,
extra_files
(['
T5889/A.hs
',
'
T5889/B.hs
'])],
multimod_compile
,
['
A B
',
'
-O -prof -fno-prof-count-entries -v0
'])
test
('
T12790
',
[
only_ways
(['
normal
']),
req_profiling
],
compile
,
['
-O -prof
'])
test
('
T14931
',
[
only_ways
(['
normal
']),
req_profiling
],
run_command
,
['
$MAKE -s --no-print-directory T14931
'])
test
('
T15108
',
[
only_ways
(['
normal
']),
req_profiling
,
expect_broken
(
15108
)],
compile
,
['
-O -prof -fprof-auto
'])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment