Commit 47c2cb0c authored by pcapriotti's avatar pcapriotti

Add testcase for #5976.

parent 9615ede4
{-# LANGUAGE TemplateHaskell #-}
$( error ("foo " ++ error "bar") )
Exception when trying to run compile-time code:
Code: error ((++) "foo " error "bar")
...@@ -232,3 +232,4 @@ test('T5984', extra_clean(['T5984_Lib.hi', 'T5984_Lib.o']), ...@@ -232,3 +232,4 @@ test('T5984', extra_clean(['T5984_Lib.hi', 'T5984_Lib.o']),
multimod_compile, ['T5984', '-v0 -ddump-splices']) multimod_compile, ['T5984', '-v0 -ddump-splices'])
test('T5555', extra_clean(['T5555_Lib.hi', 'T5555_Lib.o']), test('T5555', extra_clean(['T5555_Lib.hi', 'T5555_Lib.o']),
multimod_compile, ['T5555', '-v0']) multimod_compile, ['T5555', '-v0'])
test('T5976', normal, compile_fail, ['-v0'])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment