summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2020-08-07 18:52:47 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-08-09 21:17:54 -0400
commitc8873b52f6a16202c3cb839e988c1406b8f67cfe (patch)
treedd360f2e02abdaa8ff6ba1a42116ce1c421a2001 /testsuite
parenta11c9678409b2e0a01e8aba153e094800f3641bf (diff)
downloadhaskell-c8873b52f6a16202c3cb839e988c1406b8f67cfe.tar.gz
Api Annotations : Adjust SrcSpans for prefix bang (!).
And prefix ~ (cherry picked from commit 8dbee2c578b1f642d45561be3f416119863e01eb)
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/ghc-api/annotations/Makefile3
-rw-r--r--testsuite/tests/ghc-api/annotations/T10358.stdout2
2 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/tests/ghc-api/annotations/Makefile b/testsuite/tests/ghc-api/annotations/Makefile
index 5f0fea1cc7..a9bd5b36da 100644
--- a/testsuite/tests/ghc-api/annotations/Makefile
+++ b/testsuite/tests/ghc-api/annotations/Makefile
@@ -39,7 +39,8 @@ listcomps:
.PHONY: T10358
T10358:
- $(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10358.hs
+ # Ignore result code, we have an unattached (superfluous) AnnBang
+ - $(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10358.hs
.PHONY: T10396
T10396:
diff --git a/testsuite/tests/ghc-api/annotations/T10358.stdout b/testsuite/tests/ghc-api/annotations/T10358.stdout
index 2216c8396e..fca1a5baa6 100644
--- a/testsuite/tests/ghc-api/annotations/T10358.stdout
+++ b/testsuite/tests/ghc-api/annotations/T10358.stdout
@@ -1,5 +1,5 @@
---Unattached Annotation Problems (should be empty list)---
-[]
+[(AnnBang, Test10358.hs:5:19)]
---Ann before enclosing span problem (should be empty list)---
[