summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2019-12-02 03:28:56 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-05 16:07:44 -0500
commite49e54705dee111b64c061a01b1e193d89cf84ed (patch)
treeaf2099a845938d1039b2d9067f9ed13fa1334d19 /testsuite/tests
parent84585e5e7c5d729ce38fa47ebaa7518acd14c2f1 (diff)
downloadhaskell-e49e54705dee111b64c061a01b1e193d89cf84ed.tar.gz
Improve error messages for SCC pragmas
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/parser/should_fail/T15730.stderr3
-rw-r--r--testsuite/tests/parser/should_fail/T15730b.stderr3
2 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/tests/parser/should_fail/T15730.stderr b/testsuite/tests/parser/should_fail/T15730.stderr
index 32b5b33759..7eb649e1b6 100644
--- a/testsuite/tests/parser/should_fail/T15730.stderr
+++ b/testsuite/tests/parser/should_fail/T15730.stderr
@@ -1,2 +1,3 @@
-T15730.hs:3:27: error: parse error on input ‘/’
+T15730.hs:3:9: error:
+ A pragma is not allowed in this position: {-# SCC ann #-}
diff --git a/testsuite/tests/parser/should_fail/T15730b.stderr b/testsuite/tests/parser/should_fail/T15730b.stderr
index 5794dc00fe..032c5a49f4 100644
--- a/testsuite/tests/parser/should_fail/T15730b.stderr
+++ b/testsuite/tests/parser/should_fail/T15730b.stderr
@@ -1,2 +1,3 @@
-T15730b.hs:8:48: error: parse error on input ‘::’
+T15730b.hs:8:16: error:
+ A pragma is not allowed in this position: {-# SCC a1 #-}