aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/lib01/and2.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-15 06:43:26 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-15 06:43:26 +0200
commit001bdb593ff5d2413c3a3a39ee0b65fc20a27cd0 (patch)
treef0d003b3e17179f7531082f52d3a9e3d4d8b9ea4 /testsuite/synth/lib01/and2.vhdl
parentacf68c6a935edaf9cd3f575a5606e8fc6bd0fecb (diff)
downloadghdl-001bdb593ff5d2413c3a3a39ee0b65fc20a27cd0.tar.gz
ghdl-001bdb593ff5d2413c3a3a39ee0b65fc20a27cd0.tar.bz2
ghdl-001bdb593ff5d2413c3a3a39ee0b65fc20a27cd0.zip
testsuite/synth: add a test for --work option within files.
Diffstat (limited to 'testsuite/synth/lib01/and2.vhdl')
-rw-r--r--testsuite/synth/lib01/and2.vhdl12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/synth/lib01/and2.vhdl b/testsuite/synth/lib01/and2.vhdl
new file mode 100644
index 000000000..e2d18ed02
--- /dev/null
+++ b/testsuite/synth/lib01/and2.vhdl
@@ -0,0 +1,12 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity and2 is
+ port (a, b : std_logic;
+ o : out std_logic);
+end and2;
+
+architecture behav of and2 is
+begin
+ o <= a and b;
+end behav;