[Git][ghc/ghc][wip/sjakobi/T18177] Add regression test for #18177
Simon Jakobi pushed to branch wip/sjakobi/T18177 at Glasgow Haskell Compiler / GHC Commits: 43d551a2 by Simon Jakobi at 2026-03-22T11:59:12+01:00 Add regression test for #18177 Closes #18177. Assisted-by: Codex - - - - - 2 changed files: - + testsuite/tests/driver/T18177.hs - testsuite/tests/driver/all.T Changes: ===================================== testsuite/tests/driver/T18177.hs ===================================== @@ -0,0 +1 @@ +module T18177 where ===================================== testsuite/tests/driver/all.T ===================================== @@ -314,6 +314,12 @@ test('MultiRootsErr', normal, multimod_compile_fail, ['MultiRootsErr', 'MultiRoo test('patch-level2', normal, compile, ['-Wcpp-undef']) test('T16476a', normal, makefile_test, []) test('T16476b', normal, makefile_test, []) + +# Test that GHC can handle an empty preprocessor response file. +# This used to cause GHC to hang indefinitely: #18177 +test('T18177', [pre_cmd('touch cpp-args')], compile, + ['-v0 -fforce-recomp -fhpc -optP@cpp-args -optP-DX']) + test('T20569', extra_files(["T20569/"]), makefile_test, []) test('T21866', normal, multimod_compile, ['T21866','-no-link']) test('T21349', extra_files(['T21349']), makefile_test, []) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/43d551a235211b600e2a2d3e9e9d7c7b... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/43d551a235211b600e2a2d3e9e9d7c7b... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Simon Jakobi (@sjakobi2)