From a9c93bdd8b027d6de09a3eada7721e7fd2d3e050 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Mon, 26 Oct 2015 20:48:36 +0100 Subject: 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 --- testsuite/tests/driver/T10970.hs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 testsuite/tests/driver/T10970.hs (limited to 'testsuite/tests/driver/T10970.hs') 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 -- cgit v1.2.1