[Git][ghc/ghc][master] 3 commits: Add test for #16167
Ben Gamari
gitlab at gitlab.haskell.org
Sat May 9 17:03:49 UTC 2020
Ben Gamari pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
9d97f4b5 by nineonine at 2020-05-08T15:30:03-04:00
Add test for #16167
- - - - -
aa318338 by Ryan Scott at 2020-05-08T15:30:04-04:00
Bump exceptions submodule so that dist-boot is .gitignore'd
`exceptions` is a stage-0 boot library as of commit
30272412fa437ab8e7a8035db94a278e10513413, which means that building
`exceptions` in a GHC tree will generate a `dist-boot` directory.
However, this directory was not specified in `exceptions`'
`.gitignore` file, which causes it to dirty up the current `git`
working directory.
Accordingly, this bumps the `exceptions` submodule to commit
ghc/packages/exceptions at 23c0b8a50d7592af37ca09beeec16b93080df98f,
which adds `dist-boot` to the `.gitignore` file.
- - - - -
ea86360f by Ömer Sinan Ağacan at 2020-05-08T15:30:30-04:00
Linker.c: initialize n_symbols of ObjectCode with other fields
- - - - -
5 changed files:
- libraries/exceptions
- rts/Linker.c
- + testsuite/tests/driver/T16167.hs
- + testsuite/tests/driver/T16167.stdout
- testsuite/tests/driver/all.T
Changes:
=====================================
libraries/exceptions
=====================================
@@ -1 +1 @@
-Subproject commit fe4166f8d23d8288ef2cbbf9e36118b6b99e0d7d
+Subproject commit 23c0b8a50d7592af37ca09beeec16b93080df98f
=====================================
rts/Linker.c
=====================================
@@ -1326,6 +1326,7 @@ mkOc( pathchar *path, char *image, int imageSize,
setOcInitialStatus( oc );
oc->fileSize = imageSize;
+ oc->n_symbols = 0;
oc->symbols = NULL;
oc->n_sections = 0;
oc->sections = NULL;
=====================================
testsuite/tests/driver/T16167.hs
=====================================
@@ -0,0 +1 @@
+module f
=====================================
testsuite/tests/driver/T16167.stdout
=====================================
@@ -0,0 +1 @@
+{"span": {"file": "T16167.hs","startLine": 1,"startCol": 8,"endLine": 1,"endCol": 9},"doc": "parse error on input \u2018f\u2019","severity": "SevError","reason": null}
=====================================
testsuite/tests/driver/all.T
=====================================
@@ -261,6 +261,8 @@ test('T12955', normal, makefile_test, [])
test('T12971', [when(opsys('mingw32'), expect_broken(17945)), ignore_stdout], makefile_test, [])
test('json', normal, compile_fail, ['-ddump-json'])
test('json2', normalise_version('base','ghc-prim'), compile, ['-ddump-types -ddump-json'])
+test('T16167', exit_code(1), run_command,
+ ['{compiler} -x hs -e ":set prog T16167.hs" -ddump-json T16167.hs'])
test('T13604', [], makefile_test, [])
test('T13604a', [], makefile_test, [])
# omitting hpc and profasm because they affect the
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/86c77b36628dcce7bc9b066fc24c8c521fecc3ee...ea86360f21e8c9812acba8dc1bc2a54fef700ece
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/86c77b36628dcce7bc9b066fc24c8c521fecc3ee...ea86360f21e8c9812acba8dc1bc2a54fef700ece
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200509/cd1a50fa/attachment-0001.html>
More information about the ghc-commits
mailing list