summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2016-03-30 21:44:09 +0200
committerBen Gamari <ben@smart-cactus.org>2016-03-30 22:49:06 +0200
commitbc953fcdbc76ffbb4f06a2b74be271268f73328f (patch)
treed415337c117c51dc89446f6c601b8e643db14ff1 /testsuite/tests
parente9c2555ac666912f7dff56448ced4bfa06d14e76 (diff)
downloadhaskell-bc953fcdbc76ffbb4f06a2b74be271268f73328f.tar.gz
Add -f(no-)version-macro to explicitly control macros.
Test Plan: validate Reviewers: thomie, austin, bgamari Reviewed By: bgamari Subscribers: hvr Differential Revision: https://phabricator.haskell.org/D2058 GHC Trac Issues: #11763
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/driver/T11763.hs5
-rw-r--r--testsuite/tests/driver/T11763.stdout1
-rw-r--r--testsuite/tests/driver/all.T1
3 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T11763.hs b/testsuite/tests/driver/T11763.hs
new file mode 100644
index 0000000000..3fd5df9fce
--- /dev/null
+++ b/testsuite/tests/driver/T11763.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE CPP #-}
+main = do
+#ifndef VERSION_containers
+ putStrLn "OK"
+#endif
diff --git a/testsuite/tests/driver/T11763.stdout b/testsuite/tests/driver/T11763.stdout
new file mode 100644
index 0000000000..d86bac9de5
--- /dev/null
+++ b/testsuite/tests/driver/T11763.stdout
@@ -0,0 +1 @@
+OK
diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T
index 23aeb99a46..761ad621d4 100644
--- a/testsuite/tests/driver/all.T
+++ b/testsuite/tests/driver/all.T
@@ -475,6 +475,7 @@ test('T11381', normal, compile_fail, [''])
test('T11429a', normal, compile, ['-Wunrecognised-warning-flags -Wfoobar'])
test('T11429b', normal, compile, ['-Wno-unrecognised-warning-flags -Wfoobar'])
test('T11429c', normal, compile_fail, ['-Wunrecognised-warning-flags -Werror -Wfoobar'])
+test('T11763', normal, compile_and_run, ['-fno-version-macros'])
test('T10320',
[ ignore_output