diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2015-10-26 20:48:36 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-10-26 21:43:01 +0100 |
commit | a9c93bdd8b027d6de09a3eada7721e7fd2d3e050 (patch) | |
tree | 570c2cd55dc6943a929d8a5d9f9d80af6740935e /testsuite/tests/driver/T10970.hs | |
parent | 499ce291b6bab252c63f0791276c38012280f0b4 (diff) | |
download | haskell-a9c93bdd8b027d6de09a3eada7721e7fd2d3e050.tar.gz |
Implement MIN_VERSION and VERSION macros natively in GHC.
Test Plan: validate
Reviewers: austin, thomie, bgamari
Reviewed By: thomie
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1349
GHC Trac Issues: #10970
Diffstat (limited to 'testsuite/tests/driver/T10970.hs')
-rw-r--r-- | testsuite/tests/driver/T10970.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T10970.hs b/testsuite/tests/driver/T10970.hs new file mode 100644 index 0000000000..9de4f80650 --- /dev/null +++ b/testsuite/tests/driver/T10970.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE CPP #-} +main = do + putStrLn VERSION_containers +#if MIN_VERSION_base(3,0,0) + putStrLn "OK" +#endif |