Commit 0b00add0 authored by thomie's avatar thomie

Add test for #6132: hash bang + CPP

parent 9634e245
#!/usr/bin/env whatever
module Main where
-- Compiling a program with CPP that also has a hash bang should work (#6132).
-- Before ghc-7.8, it failed with:
-- error: invalid preprocessing directive #!
-- #!/usr/bin/env runghc
#if 1
main = return ()
......@@ -6,3 +6,5 @@ test('T8601', req_interp, run_command,
test('T11247', [req_interp, expect_broken(11247)], run_command,
['$MAKE --no-print-directory -s T11247'])
test('T6132', [], compile, [''])
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment