aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue516/reflection.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue516/reflection.vhdl')
-rw-r--r--testsuite/gna/issue516/reflection.vhdl11
1 files changed, 11 insertions, 0 deletions
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;