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_simple.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_simple.vhdl')
-rw-r--r-- | testsuite/gna/bug052/tb_simple.vhdl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/gna/bug052/tb_simple.vhdl b/testsuite/gna/bug052/tb_simple.vhdl new file mode 100644 index 000000000..4ba82f6b0 --- /dev/null +++ b/testsuite/gna/bug052/tb_simple.vhdl @@ -0,0 +1,11 @@ +entity tb_simple is + package pkg1 is + constant c : natural := 5; + end pkg1; +end tb_simple; + +architecture behav of tb_simple is +begin + assert pkg1.c = 5 severity failure; + assert pkg1.c /= 5 report "value is correct" severity note; +end behav; |