aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-03-14 08:11:56 +0100
committerTristan Gingold <tgingold@free.fr>2017-03-14 08:11:56 +0100
commit854c10fe722401459e9c6a9d2bc4af7aefdfc6c8 (patch)
treecd19f212aa9a3a4c717fa8fb0e12707860d986cb
parent536f469d83c4b972ba7cb0d014b349f1345ec9cf (diff)
downloadghdl-854c10fe722401459e9c6a9d2bc4af7aefdfc6c8.tar.gz
ghdl-854c10fe722401459e9c6a9d2bc4af7aefdfc6c8.tar.bz2
ghdl-854c10fe722401459e9c6a9d2bc4af7aefdfc6c8.zip
Test #314: add test for -fcaret-diagnostics
-rwxr-xr-xtestsuite/gna/issue314/testsuite.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/gna/issue314/testsuite.sh b/testsuite/gna/issue314/testsuite.sh
index 8f6c421bd..2208f2533 100755
--- a/testsuite/gna/issue314/testsuite.sh
+++ b/testsuite/gna/issue314/testsuite.sh
@@ -8,6 +8,12 @@ grep 2:8 t1.err
analyze_failure -ftabstop=4 t1.vhdl 2> t1.err
grep 2:4 t1.err
+analyze_failure -fcaret-diagnostics -ftabstop=4 t1.vhdl 2> t1.err
+grep "^ err;" t1.err
+
+analyze_failure -fcaret-diagnostics t1.vhdl 2> t1.err
+grep "^ err;" t1.err
+
if analyze -ftabstop=0 t1.vhdl; then
echo "error expected"
exit 1