Simon Jakobi pushed to branch wip/sjakobi/T18177 at Glasgow Haskell Compiler / GHC

Commits:

2 changed files:

Changes:

  • testsuite/tests/driver/T18177.hs
    1
    +module T18177 where

  • testsuite/tests/driver/all.T
    ... ... @@ -314,6 +314,12 @@ 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
    +
    
    318
    +# Test that GHC can handle an empty preprocessor response file.
    
    319
    +# This used to cause GHC to hang indefinitely: #18177
    
    320
    +test('T18177', [pre_cmd('touch cpp-args')], compile,
    
    321
    +     ['-v0 -fforce-recomp -fhpc -optP@cpp-args -optP-DX'])
    
    322
    +
    
    317 323
     test('T20569', extra_files(["T20569/"]), makefile_test, [])
    
    318 324
     test('T21866', normal, multimod_compile, ['T21866','-no-link'])
    
    319 325
     test('T21349', extra_files(['T21349']), makefile_test, [])