diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-12-08 06:26:20 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-12-08 19:32:22 +0100 |
commit | 83dfd49481603fc894652a4191c6787cbc319898 (patch) | |
tree | 2f3bf319352ab2186c5414abdc106e8bbf02a2a2 /testsuite/gna/issue1528/ent2.vhdl | |
parent | 07a7f419eea89b3ab901642291650f49dfb24a36 (diff) | |
download | ghdl-83dfd49481603fc894652a4191c6787cbc319898.tar.gz ghdl-83dfd49481603fc894652a4191c6787cbc319898.tar.bz2 ghdl-83dfd49481603fc894652a4191c6787cbc319898.zip |
testsuite/gna: add a test for #1528
Diffstat (limited to 'testsuite/gna/issue1528/ent2.vhdl')
-rw-r--r-- | testsuite/gna/issue1528/ent2.vhdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue1528/ent2.vhdl b/testsuite/gna/issue1528/ent2.vhdl new file mode 100644 index 000000000..66bcebfe3 --- /dev/null +++ b/testsuite/gna/issue1528/ent2.vhdl @@ -0,0 +1,21 @@ +use work.attrs_pkg.all; + +entity ent2 is + attribute ent_name of ent2: entity is "entity ent2"; +attribute ent_type of ent2: entity is "LogicII"; +attribute ent_stat of ent2: entity is 75; +end entity ent2; + +architecture bhv of ent2 is +attribute arc_name of bhv: architecture is "bhv of ent2"; +attribute arc_type of bhv: architecture is "BHV"; +attribute arc_stat of bhv: architecture is 100; +begin +process +begin +report "I am: " & bhv'arc_name; +report "Type: " & bhv'arc_type; +report "Status: " & integer'image(bhv'arc_stat); +wait; +end process; +end bhv; |