aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue293/repro.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-02-23 21:01:14 +0100
committerTristan Gingold <tgingold@free.fr>2017-02-23 21:01:14 +0100
commit394c9b5f341cd4393a87acad72b933a6d4a56e2b (patch)
treec9c168e857fd5b132f91a29245cd4ce9d71a1b1a /testsuite/gna/issue293/repro.vhdl
parente39f608869b722fc49700e9ddca7812074753d7e (diff)
downloadghdl-394c9b5f341cd4393a87acad72b933a6d4a56e2b.tar.gz
ghdl-394c9b5f341cd4393a87acad72b933a6d4a56e2b.tar.bz2
ghdl-394c9b5f341cd4393a87acad72b933a6d4a56e2b.zip
Add testcase for #293
Close #293
Diffstat (limited to 'testsuite/gna/issue293/repro.vhdl')
-rw-r--r--testsuite/gna/issue293/repro.vhdl27
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/gna/issue293/repro.vhdl b/testsuite/gna/issue293/repro.vhdl
new file mode 100644
index 000000000..1e12d6d7e
--- /dev/null
+++ b/testsuite/gna/issue293/repro.vhdl
@@ -0,0 +1,27 @@
+library ieee;
+use ieee.float_pkg.all;
+
+entity tb_test is
+ generic (
+ runner_cfg : string := "h");
+end tb_test;
+
+architecture tb of tb_test is
+begin
+ test_runner : process
+ -- Makes the implicit "=" directly visible.
+ alias fp32 is float32;
+ begin
+ assert not (zerofp = neg_zerofp) severity failure;
+
+ wait;
+ end process test_runner;
+
+ test_runner2 : process
+ -- Only the user-defined "=" is visible.
+ begin
+ assert zerofp = neg_zerofp severity failure;
+
+ wait;
+ end process test_runner2;
+end;