From f61903dba10aadcb18d608f4c57e21e7d427ea25 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 26 Aug 2020 19:43:59 +0200 Subject: testsuite/synth: add a testcase for #1430 --- testsuite/synth/issue1430/repro.vhdl | 11 +++++++++++ testsuite/synth/issue1430/repro1.vhdl | 11 +++++++++++ testsuite/synth/issue1430/testsuite.sh | 7 +++++++ 3 files changed, 29 insertions(+) create mode 100644 testsuite/synth/issue1430/repro.vhdl create mode 100644 testsuite/synth/issue1430/repro1.vhdl create mode 100755 testsuite/synth/issue1430/testsuite.sh diff --git a/testsuite/synth/issue1430/repro.vhdl b/testsuite/synth/issue1430/repro.vhdl new file mode 100644 index 000000000..572ad3087 --- /dev/null +++ b/testsuite/synth/issue1430/repro.vhdl @@ -0,0 +1,11 @@ +entity repro is + generic (a : natural := 5); +end; + +architecture behav of repro is + constant c : natural := 10; +begin + assert false + report natural'image(a) & ", c = " & integer'image(c) + severity note; +end; diff --git a/testsuite/synth/issue1430/repro1.vhdl b/testsuite/synth/issue1430/repro1.vhdl new file mode 100644 index 000000000..8d84d25a3 --- /dev/null +++ b/testsuite/synth/issue1430/repro1.vhdl @@ -0,0 +1,11 @@ +entity repro is + generic (a : natural := 5); +end; + +architecture behav of repro is + constant c : natural := 10; +begin + assert false + report natural'image(a) & "c = " & integer'image(c) + & ", a = " & natural'image(a) & " (!)" severity note; +end; diff --git a/testsuite/synth/issue1430/testsuite.sh b/testsuite/synth/issue1430/testsuite.sh new file mode 100755 index 000000000..199251667 --- /dev/null +++ b/testsuite/synth/issue1430/testsuite.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +. ../../testenv.sh + +synth repro.vhdl -e > syn_repro.vhdl + +echo "Test successful" -- cgit v1.2.3