diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-09-02 05:08:54 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-09-03 14:57:27 +0200 |
commit | d4ba25fa7fb5e7e110c5dbf567bd840e845ba834 (patch) | |
tree | c709e5ca1343d9bd751bcacf02d94f5fe66a9dc6 /testsuite/gna/bug052/tb_simple2.vhdl | |
parent | 1dc63dae4baf052864bd16bb19fe89aed3ecabba (diff) | |
download | ghdl-d4ba25fa7fb5e7e110c5dbf567bd840e845ba834.tar.gz ghdl-d4ba25fa7fb5e7e110c5dbf567bd840e845ba834.tar.bz2 ghdl-d4ba25fa7fb5e7e110c5dbf567bd840e845ba834.zip |
Add testcase for previous patch (very simple nested packages)
Diffstat (limited to 'testsuite/gna/bug052/tb_simple2.vhdl')
-rw-r--r-- | testsuite/gna/bug052/tb_simple2.vhdl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/gna/bug052/tb_simple2.vhdl b/testsuite/gna/bug052/tb_simple2.vhdl new file mode 100644 index 000000000..e137dd070 --- /dev/null +++ b/testsuite/gna/bug052/tb_simple2.vhdl @@ -0,0 +1,13 @@ +entity tb_simple2 is + generic (v : natural := 4); + package pkg1 is + constant c : natural := v + 1; + end pkg1; + constant c : natural := v - 1; +end; + +architecture behav of tb_simple2 is +begin + assert pkg1.c = 5 and c = 3 severity failure; + assert not (pkg1.c = 5 and c = 3) report "value is correct" severity note; +end behav; |