aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue877/tb2.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-08-06 09:36:10 +0200
committerTristan Gingold <tgingold@free.fr>2019-08-06 09:36:10 +0200
commitce416ec62d20f1a592835efe5cbe49856d7085a2 (patch)
treeb008fe10776a7831d24f9e29b63781ccae876500 /testsuite/gna/issue877/tb2.vhdl
parent6facf7626446acce5693b257fe7643d7b565118d (diff)
downloadghdl-ce416ec62d20f1a592835efe5cbe49856d7085a2.tar.gz
ghdl-ce416ec62d20f1a592835efe5cbe49856d7085a2.tar.bz2
ghdl-ce416ec62d20f1a592835efe5cbe49856d7085a2.zip
Add testcase for #877
Diffstat (limited to 'testsuite/gna/issue877/tb2.vhdl')
-rw-r--r--testsuite/gna/issue877/tb2.vhdl14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/gna/issue877/tb2.vhdl b/testsuite/gna/issue877/tb2.vhdl
new file mode 100644
index 000000000..e590992b0
--- /dev/null
+++ b/testsuite/gna/issue877/tb2.vhdl
@@ -0,0 +1,14 @@
+entity tb is
+end tb;
+
+architecture behav of tb is
+ constant msg : string := "hello world";
+ procedure chk (b : natural)
+ is
+ subtype my_rng is natural range 1 to b;
+ begin
+ assert msg (chk.my_rng) = "hello";
+ end chk;
+begin
+ chk(5);
+end behav;