summaryrefslogtreecommitdiff
path: root/testsuite/.gitignore
diff options
context:
space:
mode:
authorRichard Cook <rcook@rcook.org>2016-08-30 17:00:36 -0400
committerBen Gamari <ben@smart-cactus.org>2016-08-31 13:15:18 -0400
commit2ee1db60ab29258fa9f8ab820f778bd0bb7f87a4 (patch)
treecf4409c70f97c07d9d793d97ae934f640b60ca6d /testsuite/.gitignore
parentef784c551ef9b64c3c0b32c73f54bbdb747a8188 (diff)
downloadhaskell-2ee1db60ab29258fa9f8ab820f778bd0bb7f87a4.tar.gz
Fixes #12504: Double-escape paths used to build call to hsc_line
In outHsLine, paths passed to construct invocations of hsc_line must be escaped twice in order to generate a properly escaped string literal that will end up in the eventual LINE pragma emitted by this code. This is especially important on Windows paths, where backslashes would otherwise be treated as C escape sequences and result in the incorrect Windows paths. Adds test case to verify that hsc2hs properly escapes file paths in LINE pragmas Updates the hsc2hs submodule. See https://ghc.haskell.org/trac/ghc/ticket/12504 Reviewers: erikd, hvr, austin, bgamari, Phyx Reviewed By: erikd, Phyx Subscribers: thomie, Phyx, mpickering Differential Revision: https://phabricator.haskell.org/D2478 GHC Trac Issues: #12504
Diffstat (limited to 'testsuite/.gitignore')
-rw-r--r--testsuite/.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/.gitignore b/testsuite/.gitignore
index 87e3558677..5e3f1c2cc4 100644
--- a/testsuite/.gitignore
+++ b/testsuite/.gitignore
@@ -790,6 +790,7 @@ mk/ghcconfig*_test___spaces_ghc*.exe.mk
/tests/ghci/scripts/ghci027.hs
/tests/ghci/should_run/3171.err
/tests/hsc2hs/3837.hs
+/tests/hsc2hs/T12504/path/to/T12504.hs
/tests/hsc2hs/T3837.hs
/tests/hsc2hs/hsc2hs001.hs
/tests/hsc2hs/hsc2hs002.hs