summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2015-05-12 17:04:50 +0200
committerAlan Zimmerman <alan.zimm@gmail.com>2015-05-12 17:04:50 +0200
commit6ee4b6fdfb07bb479a1a9ab3e3866ca6a6192e20 (patch)
treed0a01955a20317594d0974e966a2996406a910a7 /testsuite
parentf5188f3acd73a07b648924a58b9882c2d0a3dbcb (diff)
downloadhaskell-6ee4b6fdfb07bb479a1a9ab3e3866ca6a6192e20.tar.gz
Turn off warnings when compiling boolFormula
Summary: There is a problem where harbourmaster builds complain about a bad boolFormula.stderr ghc-api/annotations boolFormula [bad stderr] (normal) The problem does not occur for a local build on my box This patch turns off warnings for this test, to get rid of the stderr issue. Test Plan: ./validate Reviewers: hvr, austin Reviewed By: austin Subscribers: bgamari, thomie, hvr Differential Revision: https://phabricator.haskell.org/D888
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/ghc-api/annotations/Makefile3
-rw-r--r--testsuite/tests/ghc-api/annotations/TestBoolFormula.hs10
-rw-r--r--testsuite/tests/ghc-api/annotations/boolFormula.stderr0
-rw-r--r--testsuite/tests/ghc-api/annotations/boolFormula.stdout190
4 files changed, 137 insertions, 66 deletions
diff --git a/testsuite/tests/ghc-api/annotations/Makefile b/testsuite/tests/ghc-api/annotations/Makefile
index 7cf7baf5b7..7cd6519988 100644
--- a/testsuite/tests/ghc-api/annotations/Makefile
+++ b/testsuite/tests/ghc-api/annotations/Makefile
@@ -100,7 +100,8 @@ t10309:
boolFormula:
rm -f boolFormula.o boolFormula.hi
- '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc boolFormula
+ # Disable all warnings to make sure boolFormula.stderr is repeatable
+ '$(TEST_HC)' $(TEST_HC_OPTS) --make -w -v0 -package ghc boolFormula
./boolFormula "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
.PHONY: clean annotations parseTree comments exampleTest listcomps boolFormula
diff --git a/testsuite/tests/ghc-api/annotations/TestBoolFormula.hs b/testsuite/tests/ghc-api/annotations/TestBoolFormula.hs
index e945318b8a..e76ce40fe5 100644
--- a/testsuite/tests/ghc-api/annotations/TestBoolFormula.hs
+++ b/testsuite/tests/ghc-api/annotations/TestBoolFormula.hs
@@ -2,11 +2,17 @@ module TestBoolFormula where
class ManyOps a where
aOp :: a -> a -> Bool
+ aOp = undefined
bOp :: a -> a -> Bool
+ bOp = undefined
cOp :: a -> a -> Bool
+ cOp = undefined
dOp :: a -> a -> Bool
+ dOp = undefined
eOp :: a -> a -> Bool
+ eOp = undefined
fOp :: a -> a -> Bool
+ fOp = undefined
{-# MINIMAL ( aOp)
| ( bOp , cOp)
| ((dOp | eOp) , fOp)
@@ -16,11 +22,15 @@ class Foo a where
bar :: a -> a -> Bool
foo :: a -> a -> Bool
baq :: a -> a -> Bool
+ baq = undefined
baz :: a -> a -> Bool
+ baz = undefined
quux :: a -> a -> Bool
+ quux = undefined
{-# MINIMAL bar, (foo, baq | foo, quux) #-}
instance Foo Int where
bar = undefined
baz = undefined
quux = undefined
+ foo = undefined
diff --git a/testsuite/tests/ghc-api/annotations/boolFormula.stderr b/testsuite/tests/ghc-api/annotations/boolFormula.stderr
deleted file mode 100644
index e69de29bb2..0000000000
--- a/testsuite/tests/ghc-api/annotations/boolFormula.stderr
+++ /dev/null
diff --git a/testsuite/tests/ghc-api/annotations/boolFormula.stdout b/testsuite/tests/ghc-api/annotations/boolFormula.stdout
index 1c7a9431b3..2ffea98054 100644
--- a/testsuite/tests/ghc-api/annotations/boolFormula.stdout
+++ b/testsuite/tests/ghc-api/annotations/boolFormula.stdout
@@ -8,11 +8,11 @@
(AK TestBoolFormula.hs:1:1 AnnWhere = [TestBoolFormula.hs:1:24-28])
-(AK TestBoolFormula.hs:(3,1)-(13,9) AnnClass = [TestBoolFormula.hs:3:1-5])
+(AK TestBoolFormula.hs:(3,1)-(19,9) AnnClass = [TestBoolFormula.hs:3:1-5])
-(AK TestBoolFormula.hs:(3,1)-(13,9) AnnSemi = [TestBoolFormula.hs:15:1])
+(AK TestBoolFormula.hs:(3,1)-(19,9) AnnSemi = [TestBoolFormula.hs:21:1])
-(AK TestBoolFormula.hs:(3,1)-(13,9) AnnWhere = [TestBoolFormula.hs:3:17-21])
+(AK TestBoolFormula.hs:(3,1)-(19,9) AnnWhere = [TestBoolFormula.hs:3:17-21])
(AK TestBoolFormula.hs:4:5-25 AnnDcolon = [TestBoolFormula.hs:4:9-10])
@@ -22,13 +22,11 @@
(AK TestBoolFormula.hs:4:17-25 AnnRarrow = [TestBoolFormula.hs:4:19-20])
-(AK TestBoolFormula.hs:5:5-25 AnnDcolon = [TestBoolFormula.hs:5:9-10])
+(AK TestBoolFormula.hs:5:5-19 AnnEqual = [TestBoolFormula.hs:5:9])
-(AK TestBoolFormula.hs:5:5-25 AnnSemi = [TestBoolFormula.hs:6:5])
+(AK TestBoolFormula.hs:5:5-19 AnnFunId = [TestBoolFormula.hs:5:5-7])
-(AK TestBoolFormula.hs:5:12-25 AnnRarrow = [TestBoolFormula.hs:5:14-15])
-
-(AK TestBoolFormula.hs:5:17-25 AnnRarrow = [TestBoolFormula.hs:5:19-20])
+(AK TestBoolFormula.hs:5:5-19 AnnSemi = [TestBoolFormula.hs:6:5])
(AK TestBoolFormula.hs:6:5-25 AnnDcolon = [TestBoolFormula.hs:6:9-10])
@@ -38,13 +36,11 @@
(AK TestBoolFormula.hs:6:17-25 AnnRarrow = [TestBoolFormula.hs:6:19-20])
-(AK TestBoolFormula.hs:7:5-25 AnnDcolon = [TestBoolFormula.hs:7:9-10])
-
-(AK TestBoolFormula.hs:7:5-25 AnnSemi = [TestBoolFormula.hs:8:5])
+(AK TestBoolFormula.hs:7:5-19 AnnEqual = [TestBoolFormula.hs:7:9])
-(AK TestBoolFormula.hs:7:12-25 AnnRarrow = [TestBoolFormula.hs:7:14-15])
+(AK TestBoolFormula.hs:7:5-19 AnnFunId = [TestBoolFormula.hs:7:5-7])
-(AK TestBoolFormula.hs:7:17-25 AnnRarrow = [TestBoolFormula.hs:7:19-20])
+(AK TestBoolFormula.hs:7:5-19 AnnSemi = [TestBoolFormula.hs:8:5])
(AK TestBoolFormula.hs:8:5-25 AnnDcolon = [TestBoolFormula.hs:8:9-10])
@@ -54,99 +50,98 @@
(AK TestBoolFormula.hs:8:17-25 AnnRarrow = [TestBoolFormula.hs:8:19-20])
-(AK TestBoolFormula.hs:9:5-25 AnnDcolon = [TestBoolFormula.hs:9:9-10])
+(AK TestBoolFormula.hs:9:5-19 AnnEqual = [TestBoolFormula.hs:9:9])
-(AK TestBoolFormula.hs:9:5-25 AnnSemi = [TestBoolFormula.hs:10:5])
+(AK TestBoolFormula.hs:9:5-19 AnnFunId = [TestBoolFormula.hs:9:5-7])
-(AK TestBoolFormula.hs:9:12-25 AnnRarrow = [TestBoolFormula.hs:9:14-15])
+(AK TestBoolFormula.hs:9:5-19 AnnSemi = [TestBoolFormula.hs:10:5])
-(AK TestBoolFormula.hs:9:17-25 AnnRarrow = [TestBoolFormula.hs:9:19-20])
+(AK TestBoolFormula.hs:10:5-25 AnnDcolon = [TestBoolFormula.hs:10:9-10])
-(AK TestBoolFormula.hs:(10,5)-(13,9) AnnClose = [TestBoolFormula.hs:13:7-9])
+(AK TestBoolFormula.hs:10:5-25 AnnSemi = [TestBoolFormula.hs:11:5])
-(AK TestBoolFormula.hs:(10,5)-(13,9) AnnCloseP = [TestBoolFormula.hs:10:23, TestBoolFormula.hs:11:31,
- TestBoolFormula.hs:12:38, TestBoolFormula.hs:12:31])
+(AK TestBoolFormula.hs:10:12-25 AnnRarrow = [TestBoolFormula.hs:10:14-15])
-(AK TestBoolFormula.hs:(10,5)-(13,9) AnnComma = [TestBoolFormula.hs:11:26, TestBoolFormula.hs:12:33])
+(AK TestBoolFormula.hs:10:17-25 AnnRarrow = [TestBoolFormula.hs:10:19-20])
-(AK TestBoolFormula.hs:(10,5)-(13,9) AnnOpen = [TestBoolFormula.hs:10:5-15])
+(AK TestBoolFormula.hs:11:5-19 AnnEqual = [TestBoolFormula.hs:11:9])
-(AK TestBoolFormula.hs:(10,5)-(13,9) AnnOpenP = [TestBoolFormula.hs:10:18, TestBoolFormula.hs:11:18,
- TestBoolFormula.hs:12:18, TestBoolFormula.hs:12:19])
+(AK TestBoolFormula.hs:11:5-19 AnnFunId = [TestBoolFormula.hs:11:5-7])
-(AK TestBoolFormula.hs:(10,5)-(13,9) AnnVbar = [TestBoolFormula.hs:11:16, TestBoolFormula.hs:12:16,
- TestBoolFormula.hs:12:25])
+(AK TestBoolFormula.hs:11:5-19 AnnSemi = [TestBoolFormula.hs:12:5])
-(AK TestBoolFormula.hs:(15,1)-(21,47) AnnClass = [TestBoolFormula.hs:15:1-5])
+(AK TestBoolFormula.hs:12:5-25 AnnDcolon = [TestBoolFormula.hs:12:9-10])
-(AK TestBoolFormula.hs:(15,1)-(21,47) AnnSemi = [TestBoolFormula.hs:23:1])
+(AK TestBoolFormula.hs:12:5-25 AnnSemi = [TestBoolFormula.hs:13:5])
-(AK TestBoolFormula.hs:(15,1)-(21,47) AnnWhere = [TestBoolFormula.hs:15:13-17])
+(AK TestBoolFormula.hs:12:12-25 AnnRarrow = [TestBoolFormula.hs:12:14-15])
-(AK TestBoolFormula.hs:16:5-25 AnnDcolon = [TestBoolFormula.hs:16:9-10])
+(AK TestBoolFormula.hs:12:17-25 AnnRarrow = [TestBoolFormula.hs:12:19-20])
-(AK TestBoolFormula.hs:16:5-25 AnnSemi = [TestBoolFormula.hs:17:5])
+(AK TestBoolFormula.hs:13:5-19 AnnEqual = [TestBoolFormula.hs:13:9])
-(AK TestBoolFormula.hs:16:12-25 AnnRarrow = [TestBoolFormula.hs:16:14-15])
+(AK TestBoolFormula.hs:13:5-19 AnnFunId = [TestBoolFormula.hs:13:5-7])
-(AK TestBoolFormula.hs:16:17-25 AnnRarrow = [TestBoolFormula.hs:16:19-20])
+(AK TestBoolFormula.hs:13:5-19 AnnSemi = [TestBoolFormula.hs:14:5])
-(AK TestBoolFormula.hs:17:5-25 AnnDcolon = [TestBoolFormula.hs:17:9-10])
+(AK TestBoolFormula.hs:14:5-25 AnnDcolon = [TestBoolFormula.hs:14:9-10])
-(AK TestBoolFormula.hs:17:5-25 AnnSemi = [TestBoolFormula.hs:18:5])
+(AK TestBoolFormula.hs:14:5-25 AnnSemi = [TestBoolFormula.hs:15:5])
-(AK TestBoolFormula.hs:17:12-25 AnnRarrow = [TestBoolFormula.hs:17:14-15])
+(AK TestBoolFormula.hs:14:12-25 AnnRarrow = [TestBoolFormula.hs:14:14-15])
-(AK TestBoolFormula.hs:17:17-25 AnnRarrow = [TestBoolFormula.hs:17:19-20])
+(AK TestBoolFormula.hs:14:17-25 AnnRarrow = [TestBoolFormula.hs:14:19-20])
-(AK TestBoolFormula.hs:18:5-25 AnnDcolon = [TestBoolFormula.hs:18:9-10])
+(AK TestBoolFormula.hs:15:5-19 AnnEqual = [TestBoolFormula.hs:15:9])
-(AK TestBoolFormula.hs:18:5-25 AnnSemi = [TestBoolFormula.hs:19:5])
+(AK TestBoolFormula.hs:15:5-19 AnnFunId = [TestBoolFormula.hs:15:5-7])
-(AK TestBoolFormula.hs:18:12-25 AnnRarrow = [TestBoolFormula.hs:18:14-15])
+(AK TestBoolFormula.hs:15:5-19 AnnSemi = [TestBoolFormula.hs:16:5])
-(AK TestBoolFormula.hs:18:17-25 AnnRarrow = [TestBoolFormula.hs:18:19-20])
+(AK TestBoolFormula.hs:(16,5)-(19,9) AnnClose = [TestBoolFormula.hs:19:7-9])
-(AK TestBoolFormula.hs:19:5-25 AnnDcolon = [TestBoolFormula.hs:19:9-10])
+(AK TestBoolFormula.hs:(16,5)-(19,9) AnnCloseP = [TestBoolFormula.hs:16:23, TestBoolFormula.hs:17:31,
+ TestBoolFormula.hs:18:38, TestBoolFormula.hs:18:31])
-(AK TestBoolFormula.hs:19:5-25 AnnSemi = [TestBoolFormula.hs:20:5])
+(AK TestBoolFormula.hs:(16,5)-(19,9) AnnComma = [TestBoolFormula.hs:17:26, TestBoolFormula.hs:18:33])
-(AK TestBoolFormula.hs:19:12-25 AnnRarrow = [TestBoolFormula.hs:19:14-15])
+(AK TestBoolFormula.hs:(16,5)-(19,9) AnnOpen = [TestBoolFormula.hs:16:5-15])
-(AK TestBoolFormula.hs:19:17-25 AnnRarrow = [TestBoolFormula.hs:19:19-20])
+(AK TestBoolFormula.hs:(16,5)-(19,9) AnnOpenP = [TestBoolFormula.hs:16:18, TestBoolFormula.hs:17:18,
+ TestBoolFormula.hs:18:18, TestBoolFormula.hs:18:19])
-(AK TestBoolFormula.hs:20:5-26 AnnDcolon = [TestBoolFormula.hs:20:10-11])
+(AK TestBoolFormula.hs:(16,5)-(19,9) AnnVbar = [TestBoolFormula.hs:17:16, TestBoolFormula.hs:18:16,
+ TestBoolFormula.hs:18:25])
-(AK TestBoolFormula.hs:20:5-26 AnnSemi = [TestBoolFormula.hs:21:5])
+(AK TestBoolFormula.hs:(21,1)-(30,47) AnnClass = [TestBoolFormula.hs:21:1-5])
-(AK TestBoolFormula.hs:20:13-26 AnnRarrow = [TestBoolFormula.hs:20:15-16])
+(AK TestBoolFormula.hs:(21,1)-(30,47) AnnSemi = [TestBoolFormula.hs:32:1])
-(AK TestBoolFormula.hs:20:18-26 AnnRarrow = [TestBoolFormula.hs:20:20-21])
+(AK TestBoolFormula.hs:(21,1)-(30,47) AnnWhere = [TestBoolFormula.hs:21:13-17])
-(AK TestBoolFormula.hs:21:5-47 AnnClose = [TestBoolFormula.hs:21:45-47])
+(AK TestBoolFormula.hs:22:5-25 AnnDcolon = [TestBoolFormula.hs:22:9-10])
-(AK TestBoolFormula.hs:21:5-47 AnnCloseP = [TestBoolFormula.hs:21:43])
+(AK TestBoolFormula.hs:22:5-25 AnnSemi = [TestBoolFormula.hs:23:5])
-(AK TestBoolFormula.hs:21:5-47 AnnComma = [TestBoolFormula.hs:21:20, TestBoolFormula.hs:21:26,
- TestBoolFormula.hs:21:37])
+(AK TestBoolFormula.hs:22:12-25 AnnRarrow = [TestBoolFormula.hs:22:14-15])
-(AK TestBoolFormula.hs:21:5-47 AnnOpen = [TestBoolFormula.hs:21:5-15])
+(AK TestBoolFormula.hs:22:17-25 AnnRarrow = [TestBoolFormula.hs:22:19-20])
-(AK TestBoolFormula.hs:21:5-47 AnnOpenP = [TestBoolFormula.hs:21:22])
+(AK TestBoolFormula.hs:23:5-25 AnnDcolon = [TestBoolFormula.hs:23:9-10])
-(AK TestBoolFormula.hs:21:5-47 AnnVbar = [TestBoolFormula.hs:21:32])
+(AK TestBoolFormula.hs:23:5-25 AnnSemi = [TestBoolFormula.hs:24:5])
-(AK TestBoolFormula.hs:(23,1)-(26,20) AnnInstance = [TestBoolFormula.hs:23:1-8])
+(AK TestBoolFormula.hs:23:12-25 AnnRarrow = [TestBoolFormula.hs:23:14-15])
-(AK TestBoolFormula.hs:(23,1)-(26,20) AnnSemi = [TestBoolFormula.hs:27:1])
+(AK TestBoolFormula.hs:23:17-25 AnnRarrow = [TestBoolFormula.hs:23:19-20])
-(AK TestBoolFormula.hs:(23,1)-(26,20) AnnWhere = [TestBoolFormula.hs:23:18-22])
+(AK TestBoolFormula.hs:24:5-25 AnnDcolon = [TestBoolFormula.hs:24:9-10])
-(AK TestBoolFormula.hs:24:5-19 AnnEqual = [TestBoolFormula.hs:24:9])
+(AK TestBoolFormula.hs:24:5-25 AnnSemi = [TestBoolFormula.hs:25:5])
-(AK TestBoolFormula.hs:24:5-19 AnnFunId = [TestBoolFormula.hs:24:5-7])
+(AK TestBoolFormula.hs:24:12-25 AnnRarrow = [TestBoolFormula.hs:24:14-15])
-(AK TestBoolFormula.hs:24:5-19 AnnSemi = [TestBoolFormula.hs:25:5])
+(AK TestBoolFormula.hs:24:17-25 AnnRarrow = [TestBoolFormula.hs:24:19-20])
(AK TestBoolFormula.hs:25:5-19 AnnEqual = [TestBoolFormula.hs:25:9])
@@ -154,10 +149,75 @@
(AK TestBoolFormula.hs:25:5-19 AnnSemi = [TestBoolFormula.hs:26:5])
-(AK TestBoolFormula.hs:26:5-20 AnnEqual = [TestBoolFormula.hs:26:10])
+(AK TestBoolFormula.hs:26:5-25 AnnDcolon = [TestBoolFormula.hs:26:9-10])
+
+(AK TestBoolFormula.hs:26:5-25 AnnSemi = [TestBoolFormula.hs:27:5])
+
+(AK TestBoolFormula.hs:26:12-25 AnnRarrow = [TestBoolFormula.hs:26:14-15])
+
+(AK TestBoolFormula.hs:26:17-25 AnnRarrow = [TestBoolFormula.hs:26:19-20])
+
+(AK TestBoolFormula.hs:27:5-19 AnnEqual = [TestBoolFormula.hs:27:9])
+
+(AK TestBoolFormula.hs:27:5-19 AnnFunId = [TestBoolFormula.hs:27:5-7])
+
+(AK TestBoolFormula.hs:27:5-19 AnnSemi = [TestBoolFormula.hs:28:5])
+
+(AK TestBoolFormula.hs:28:5-26 AnnDcolon = [TestBoolFormula.hs:28:10-11])
+
+(AK TestBoolFormula.hs:28:5-26 AnnSemi = [TestBoolFormula.hs:29:5])
+
+(AK TestBoolFormula.hs:28:13-26 AnnRarrow = [TestBoolFormula.hs:28:15-16])
+
+(AK TestBoolFormula.hs:28:18-26 AnnRarrow = [TestBoolFormula.hs:28:20-21])
+
+(AK TestBoolFormula.hs:29:5-20 AnnEqual = [TestBoolFormula.hs:29:10])
+
+(AK TestBoolFormula.hs:29:5-20 AnnFunId = [TestBoolFormula.hs:29:5-8])
+
+(AK TestBoolFormula.hs:29:5-20 AnnSemi = [TestBoolFormula.hs:30:5])
+
+(AK TestBoolFormula.hs:30:5-47 AnnClose = [TestBoolFormula.hs:30:45-47])
+
+(AK TestBoolFormula.hs:30:5-47 AnnCloseP = [TestBoolFormula.hs:30:43])
+
+(AK TestBoolFormula.hs:30:5-47 AnnComma = [TestBoolFormula.hs:30:20, TestBoolFormula.hs:30:26,
+ TestBoolFormula.hs:30:37])
+
+(AK TestBoolFormula.hs:30:5-47 AnnOpen = [TestBoolFormula.hs:30:5-15])
+
+(AK TestBoolFormula.hs:30:5-47 AnnOpenP = [TestBoolFormula.hs:30:22])
+
+(AK TestBoolFormula.hs:30:5-47 AnnVbar = [TestBoolFormula.hs:30:32])
+
+(AK TestBoolFormula.hs:(32,1)-(36,19) AnnInstance = [TestBoolFormula.hs:32:1-8])
+
+(AK TestBoolFormula.hs:(32,1)-(36,19) AnnSemi = [TestBoolFormula.hs:37:1])
+
+(AK TestBoolFormula.hs:(32,1)-(36,19) AnnWhere = [TestBoolFormula.hs:32:18-22])
+
+(AK TestBoolFormula.hs:33:5-19 AnnEqual = [TestBoolFormula.hs:33:9])
+
+(AK TestBoolFormula.hs:33:5-19 AnnFunId = [TestBoolFormula.hs:33:5-7])
+
+(AK TestBoolFormula.hs:33:5-19 AnnSemi = [TestBoolFormula.hs:34:5])
+
+(AK TestBoolFormula.hs:34:5-19 AnnEqual = [TestBoolFormula.hs:34:9])
+
+(AK TestBoolFormula.hs:34:5-19 AnnFunId = [TestBoolFormula.hs:34:5-7])
+
+(AK TestBoolFormula.hs:34:5-19 AnnSemi = [TestBoolFormula.hs:35:5])
+
+(AK TestBoolFormula.hs:35:5-20 AnnEqual = [TestBoolFormula.hs:35:10])
+
+(AK TestBoolFormula.hs:35:5-20 AnnFunId = [TestBoolFormula.hs:35:5-8])
+
+(AK TestBoolFormula.hs:35:5-20 AnnSemi = [TestBoolFormula.hs:36:5])
+
+(AK TestBoolFormula.hs:36:5-19 AnnEqual = [TestBoolFormula.hs:36:9])
-(AK TestBoolFormula.hs:26:5-20 AnnFunId = [TestBoolFormula.hs:26:5-8])
+(AK TestBoolFormula.hs:36:5-19 AnnFunId = [TestBoolFormula.hs:36:5-7])
-(AK <no location info> AnnEofPos = [TestBoolFormula.hs:27:1])
+(AK <no location info> AnnEofPos = [TestBoolFormula.hs:37:1])
]