[GHC] #9399: CPP does not process test case enum01.hs correctly

GHC ghc-devs at haskell.org
Mon Aug 11 22:33:52 UTC 2014


#9399: CPP does not process test case enum01.hs correctly
-------------------------------------+-------------------------------------
              Reporter:  jrp         |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Test Suite  |          Version:  7.8.3
            Resolution:              |         Keywords:  cpp
      Operating System:  MacOS X     |     Architecture:  x86_64 (amd64)
       Type of failure:  GHC         |       Difficulty:  Unknown
  rejects valid program              |       Blocked By:
             Test Case:  enum01.hs   |  Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Oh yes, I see `clang -E -traditional` doesn't expand the `printTest` macro
 because of the space after the macro name.

 We could fix the test to be clang-compatible of course, but I don't know
 whether that is the right thing to do. Perhaps the fact that ghci has
 invoked clang at all indicates that something has already gone wrong.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9399#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list