From 0612f8baeb5f0e7a6dec729691a291ba0ce631c4 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 5 Dec 2018 20:53:54 +0100 Subject: Add testcase for #646 --- testsuite/gna/issue646/repro.vhdl | 15 +++++++++++++++ testsuite/gna/issue646/testsuite.sh | 12 ++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 testsuite/gna/issue646/repro.vhdl create mode 100755 testsuite/gna/issue646/testsuite.sh (limited to 'testsuite/gna/issue646') diff --git a/testsuite/gna/issue646/repro.vhdl b/testsuite/gna/issue646/repro.vhdl new file mode 100644 index 000000000..658cd664f --- /dev/null +++ b/testsuite/gna/issue646/repro.vhdl @@ -0,0 +1,15 @@ +entity repro is +end entity; + +architecture tb of repro is + + type tb_cfg_t is record + value : string; + end record tb_cfg_t; + + constant tb_cfg: tb_cfg_t := ( value => "hello" ); +begin + assert tb_cfg.value > "a"; +end tb; + + diff --git a/testsuite/gna/issue646/testsuite.sh b/testsuite/gna/issue646/testsuite.sh new file mode 100755 index 000000000..ca326e2f6 --- /dev/null +++ b/testsuite/gna/issue646/testsuite.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +#exit 0 +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze repro.vhdl +elab_simulate repro + +clean + +echo "Test successful" -- cgit v1.2.3