From 97813f901e260c3ae1506c272651da3b09e0dcf1 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 5 Jan 2018 08:57:32 +0100 Subject: Add reproducer for #516 --- testsuite/gna/issue516/reflection.vhdl | 11 +++++++++++ testsuite/gna/issue516/testsuite.sh | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 testsuite/gna/issue516/reflection.vhdl create mode 100755 testsuite/gna/issue516/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/issue516/reflection.vhdl b/testsuite/gna/issue516/reflection.vhdl new file mode 100644 index 000000000..e853625af --- /dev/null +++ b/testsuite/gna/issue516/reflection.vhdl @@ -0,0 +1,11 @@ +package reflection is + type ENUMERATION_VALUE_MIRROR_PT is protected + impure function pos return INTEGER; + impure function image return STRING; + end protected; + type ENUMERATION_VALUE_MIRROR is access ENUMERATION_VALUE_MIRROR_PT; + + type ENUMERATION_SUBTYPE_MIRROR_PT is protected + impure function enumeration_literal(literal_name : STRING) return ENUMERATION_VALUE_MIRROR; + end protected; +end package; diff --git a/testsuite/gna/issue516/testsuite.sh b/testsuite/gna/issue516/testsuite.sh new file mode 100755 index 000000000..231755a3e --- /dev/null +++ b/testsuite/gna/issue516/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze_failure reflection.vhdl + +clean + +echo "Test successful" -- cgit v1.2.3