diff options
author | Tristan Gingold | 2015-11-07 08:50:51 +0100 |
---|---|---|
committer | Tristan Gingold | 2015-11-07 08:50:51 +0100 |
commit | 1cf874492884008f612e0352800ae175df890865 (patch) | |
tree | ddba103e8dea5c07fdb62fa20685c8b9ac5a85da /testsuite/gna/bug026/xb.vhd | |
parent | 983a284cd1217380be67f254619766b9ec6a1e71 (diff) | |
download | ghdl-1cf874492884008f612e0352800ae175df890865.tar.gz ghdl-1cf874492884008f612e0352800ae175df890865.tar.bz2 ghdl-1cf874492884008f612e0352800ae175df890865.zip |
Add a reproducer for foreign procedures.
Diffstat (limited to 'testsuite/gna/bug026/xb.vhd')
-rw-r--r-- | testsuite/gna/bug026/xb.vhd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/bug026/xb.vhd b/testsuite/gna/bug026/xb.vhd new file mode 100644 index 0000000..53877a6 --- /dev/null +++ b/testsuite/gna/bug026/xb.vhd @@ -0,0 +1,20 @@ +package body dosomething is + + procedure dosomething_c_hello ( + constant r : in dosomething_t); + + attribute foreign of dosomething_c_hello : procedure is "VHPIDIRECT dosomething_c_hello"; + + procedure dosomething_c_hello ( + constant r : in dosomething_t) is + begin + assert false severity failure; + end dosomething_c_hello; + + procedure dosomething_hello ( + variable r : inout dosomething_t) is + begin + dosomething_c_hello(r); + end dosomething_hello; + +end dosomething; |