aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1898/scale4.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-11-03 07:46:54 +0100
committerTristan Gingold <tgingold@free.fr>2021-11-03 22:10:05 +0100
commiteb2b7a950937f5f414c4652514e66e31549bc8bd (patch)
tree762e219f141f2bfe63e290e36a4af500987a8ba0 /testsuite/gna/issue1898/scale4.vhdl
parent0c12112fdd8a69f50a4b54e98755f3bc0e2d8441 (diff)
downloadghdl-eb2b7a950937f5f414c4652514e66e31549bc8bd.tar.gz
ghdl-eb2b7a950937f5f414c4652514e66e31549bc8bd.tar.bz2
ghdl-eb2b7a950937f5f414c4652514e66e31549bc8bd.zip
testsuite/gna: add a test for #1898
Diffstat (limited to 'testsuite/gna/issue1898/scale4.vhdl')
-rw-r--r--testsuite/gna/issue1898/scale4.vhdl9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/gna/issue1898/scale4.vhdl b/testsuite/gna/issue1898/scale4.vhdl
new file mode 100644
index 000000000..8220ff8a9
--- /dev/null
+++ b/testsuite/gna/issue1898/scale4.vhdl
@@ -0,0 +1,9 @@
+entity scale4 is
+ port(b : in bit;
+ w : out bit_vector(0 to 1));
+end entity scale4;
+
+architecture boop of scale4 is
+begin
+ w <= b and "01";
+end architecture boop;