Simon Jakobi pushed to branch wip/sjakobi/T18177 at Glasgow Haskell Compiler / GHC
Commits:
-
d1c54ffc
by Simon Jakobi at 2026-03-11T21:08:16+01:00
3 changed files:
Changes:
| ... | ... | @@ -767,6 +767,14 @@ T16476b: |
| 767 | 767 | "$(TEST_HC)" $(TEST_HC_OPTS) -v0 @resp
|
| 768 | 768 | ./T16476b
|
| 769 | 769 | |
| 770 | +# Test that GHC can handle an empty preprocessor response file.
|
|
| 771 | +# This used to cause GHC to hang indefinitely: #18177
|
|
| 772 | +.PHONY: T18177
|
|
| 773 | +T18177:
|
|
| 774 | + touch cpp-args
|
|
| 775 | + "$(TEST_HC)" $(TEST_HC_OPTS) -v0 -fforce-recomp -c T18177.hs -fhpc \
|
|
| 776 | + -optP@cpp-args -optP-DX
|
|
| 777 | + |
|
| 770 | 778 | .PHONY: T20569
|
| 771 | 779 | T20569:
|
| 772 | 780 | "$(TEST_HC)" $(TEST_HC_OPTS) -c T20569/A.hs -i -iT20569 -hidir=interface
|
| 1 | +module T18177 where |
| ... | ... | @@ -314,6 +314,7 @@ test('MultiRootsErr', normal, multimod_compile_fail, ['MultiRootsErr', 'MultiRoo |
| 314 | 314 | test('patch-level2', normal, compile, ['-Wcpp-undef'])
|
| 315 | 315 | test('T16476a', normal, makefile_test, [])
|
| 316 | 316 | test('T16476b', normal, makefile_test, [])
|
| 317 | +test('T18177', req_c, makefile_test, [])
|
|
| 317 | 318 | test('T20569', extra_files(["T20569/"]), makefile_test, [])
|
| 318 | 319 | test('T21866', normal, multimod_compile, ['T21866','-no-link'])
|
| 319 | 320 | test('T21349', extra_files(['T21349']), makefile_test, [])
|