From 5d0f5bd7ce8ea929d5f5583c064f30ea185462a7 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 25 May 2019 07:57:15 +0200 Subject: sanity/004all08: test --reprint --- testsuite/sanity/004all08/testsuite.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'testsuite/sanity') diff --git a/testsuite/sanity/004all08/testsuite.sh b/testsuite/sanity/004all08/testsuite.sh index 0b908aade..3be90ebc3 100755 --- a/testsuite/sanity/004all08/testsuite.sh +++ b/testsuite/sanity/004all08/testsuite.sh @@ -11,6 +11,22 @@ fi GHDL_STD_FLAGS="--std=08" analyze all08.vhdl +# Test reprint +$GHDL --reprint --std=08 all08.vhdl > all08.out +$GHDL --compare-tokens --std=08 all08.out all08.vhdl + +# Test reprint --no-sem +$GHDL --reprint --std=08 --no-sem all08.vhdl > all08.out +$GHDL --compare-tokens --std=08 all08.vhdl all08.out + +rm -f all08.out + +# Test reprint ams (no-sem) +$GHDL --reprint --ams --no-sem ams08.vhdl > ams08.out +$GHDL --compare-tokens --ams ams08.out ams08.vhdl + +rm -f ams08.out + clean echo "test successful" -- cgit v1.2.3