From c6edf7060590f9207bd82a649f2712d5ac50e427 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 6 Nov 2019 04:18:25 +0100 Subject: Add testcase for #1009 --- testsuite/synth/issue1009/record_test.vhdl | 15 +++++++++++++++ testsuite/synth/issue1009/testsuite.sh | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 testsuite/synth/issue1009/record_test.vhdl create mode 100755 testsuite/synth/issue1009/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/synth/issue1009/record_test.vhdl b/testsuite/synth/issue1009/record_test.vhdl new file mode 100644 index 000000000..7c8127782 --- /dev/null +++ b/testsuite/synth/issue1009/record_test.vhdl @@ -0,0 +1,15 @@ +entity record_test is + port ( + o : out integer + ); +end record_test; + +architecture rtl of record_test is + type t_record is record + int : integer; + end record t_record; + constant rec_constant : t_record := (int => 27.777 us / 83.333 ns); + constant rec_constant2 : t_record := rec_constant; +begin + o <= rec_constant2.int; +end rtl; diff --git a/testsuite/synth/issue1009/testsuite.sh b/testsuite/synth/issue1009/testsuite.sh new file mode 100755 index 000000000..54edeede9 --- /dev/null +++ b/testsuite/synth/issue1009/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +synth record_test.vhdl -e > syn_record_test.vhdl +analyze syn_record_test.vhdl + +clean + +echo "Test successful" -- cgit v1.2.3