Simon Jakobi pushed to branch wip/sjakobi/deprecated-flags-2016 at Glasgow Haskell Compiler / GHC

Commits:

2 changed files:

Changes:

  • testsuite/tests/driver/T2464.hs
    1 1
     {-# LANGUAGE CPP #-}
    
    2 2
     {-# OPTIONS_GHC -DTEST #-}
    
    3
    +{-# OPTIONS_GHC -Wno-such-warning #-} -- warned about exactly once
    
    3 4
     #if defined(TEST)
    
    4
    -{-# LANGUAGE EmptyDataDecls #-}
    
    5
    +{-# LANGUAGE MagicHash #-}
    
    5 6
     #endif
    
    6 7
     
    
    7 8
     module Test2464 where
    
    8
    -data T
    9
    +
    
    10
    +import GHC.Exts
    
    11
    +
    
    12
    +f :: Int# -> Int#
    
    13
    +f x = x +# 1#

  • testsuite/tests/driver/T2464.stderr
    1
    +
    
    2
    +T2464.hs:3:17: warning: [GHC-93741] [-Wunrecognised-warning-flags (in -Wdefault)]
    
    3
    +    unrecognised warning flag: -Wno-such-warning