Skip to content
Snippets Groups Projects
Commit cb5271ac authored by KevinBuhr's avatar KevinBuhr Committed by Marge Bot
Browse files

Add regression test for old panic on inlining undeclared identifier (#495)

parent d2e290d3
No related branches found
No related tags found
No related merge requests found
-- Regression test for #495
-- inlining an undeclared identifier should give error, not panic...
{-# INLINE blarg #-}
-- even if the identifier is imported in the Prelude...
{-# INLINE lookup #-}
T495.hs:4:12: error:
The INLINE pragma for ‘blarg’ lacks an accompanying binding
T495.hs:7:12: error:
The INLINE pragma for ‘lookup’ lacks an accompanying binding
(The INLINE pragma must be given where ‘lookup’ is declared)
......@@ -60,6 +60,7 @@ test('rnfail056', normal, compile_fail, [''])
test('rnfail057', normal, compile_fail, [''])
test('rn_dup', normal, compile_fail, [''])
test('T495', normal, compile_fail, [''])
test('T2490', normal, compile_fail, [''])
test('T2901', normal, compile_fail, [''])
test('T2723', normal, compile, ['']) # Warnings only
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment