diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2016-09-01 15:28:07 -0700 |
---|---|---|
committer | Edward Z. Yang <ezyang@cs.stanford.edu> | 2016-09-02 01:42:21 -0700 |
commit | 818760d68c0e5e4479a4f64fc863303ff5f23a3a (patch) | |
tree | 776910c07ceaebf3a90dd63d5dcb8848787b938b /testsuite/tests/driver/Makefile | |
parent | 0cc3931bd7831fa8d042f968a5a9114534a656e4 (diff) | |
download | haskell-818760d68c0e5e4479a4f64fc863303ff5f23a3a.tar.gz |
Fix #10923 by fingerprinting optimization level.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate
Reviewers: simonmar, austin, bgamari, thomie, rwbarton
Differential Revision: https://phabricator.haskell.org/D2509
GHC Trac Issues: #10923
Diffstat (limited to 'testsuite/tests/driver/Makefile')
-rw-r--r-- | testsuite/tests/driver/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/driver/Makefile b/testsuite/tests/driver/Makefile index 8069331fcb..4e9ef20f41 100644 --- a/testsuite/tests/driver/Makefile +++ b/testsuite/tests/driver/Makefile @@ -629,3 +629,10 @@ T12135: cp T12135b.h T12135b/T12135.h "$(TEST_HC)" $(TEST_HC_OPTS) -IT12135b -IT12135a --make T12135.hs ./T12135 + +.PHONY: T10923 +T10923: + $(RM) -rf T10923.o T10923.hi + "$(TEST_HC)" $(TEST_HC_OPTS) -v1 -O0 -c T10923.hs + # should NOT output "compilation is NOT required" + "$(TEST_HC)" $(TEST_HC_OPTS) -v1 -O -c T10923.hs |