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
d1a5be8f
Commit
d1a5be8f
authored
Sep 22, 2010
by
Ian Lynagh
Browse files
Add a test for
#4255
: can't use TH with a profiled compiler
parent
9fd203ab
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/driver/testlib.py
View file @
d1a5be8f
...
...
@@ -298,6 +298,12 @@ def if_compiler_profiled( f ):
else
:
return
normal
def
unless_compiler_profiled
(
f
):
if
config
.
compiler_profiled
:
return
normal
else
:
return
f
def
if_compiler_lt
(
compiler
,
version
,
f
):
if
config
.
compiler_type
==
compiler
and
\
version_lt
(
config
.
compiler_version
,
version
):
...
...
testsuite/tests/ghc-regress/th/T4255.hs
0 → 100644
View file @
d1a5be8f
{-# LANGUAGE TemplateHaskell #-}
module
T4255
where
f
x
=
$
([
|
x
|
])
testsuite/tests/ghc-regress/th/T4255.stderr
0 → 100644
View file @
d1a5be8f
ghc: T4255.hs:2:14-28: You can't use Template Haskell with a profiled compiler
Usage: For basic information, try the `--help' option.
testsuite/tests/ghc-regress/th/all.T
View file @
d1a5be8f
# This test needs to come before the setTestOpts calls below, as we want
# to run it !if_compiler_profiled
test
('
T4255
',
unless_compiler_profiled
(
skip
),
compile_fail
,
['
-v0
'])
def
f
(
opts
):
opts
.
extra_hc_opts
=
'
-XTemplateHaskell -package template-haskell
'
if
(
ghc_with_interpreter
==
0
):
...
...
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