Tests for TH, LHS and CPP with FileMapping
This commit is contained in:
7
test/data/file-mapping/preprocessor/File.hs
Normal file
7
test/data/file-mapping/preprocessor/File.hs
Normal file
@@ -0,0 +1,7 @@
|
||||
{-# LANGUAGE CPP #-}
|
||||
#ifndef NOTHING
|
||||
main :: IO ()
|
||||
main = putStrLn "Hello World!"
|
||||
#else
|
||||
INVALID
|
||||
#endif
|
||||
6
test/data/file-mapping/preprocessor/File_Redir.hs
Normal file
6
test/data/file-mapping/preprocessor/File_Redir.hs
Normal file
@@ -0,0 +1,6 @@
|
||||
{-# LANGUAGE CPP #-}
|
||||
#ifndef NOTHING
|
||||
main = putStrLn "Hello World!"
|
||||
#else
|
||||
INVALID
|
||||
#endif
|
||||
9
test/data/file-mapping/preprocessor/File_Redir_Lint.hs
Normal file
9
test/data/file-mapping/preprocessor/File_Redir_Lint.hs
Normal file
@@ -0,0 +1,9 @@
|
||||
{-# LANGUAGE CPP #-}
|
||||
#ifndef NOTHING
|
||||
module File where
|
||||
|
||||
func :: Num a => a -> a -> a
|
||||
func a b = (*) a b
|
||||
#else
|
||||
INVALID
|
||||
#endif
|
||||
Reference in New Issue
Block a user