aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-11-10 18:59:50 +0100
committerTristan Gingold <tgingold@free.fr>2016-11-11 09:47:20 +0100
commitf4a054e86738cd261d05858334f731535f9cc702 (patch)
tree0d19d3296fa08c957cc795fcfbd72e57108fa648
parentbe9fc0119cd9c9ca8e8dce491d1b41b9f1b574e9 (diff)
downloadghdl-f4a054e86738cd261d05858334f731535f9cc702.tar.gz
ghdl-f4a054e86738cd261d05858334f731535f9cc702.tar.bz2
ghdl-f4a054e86738cd261d05858334f731535f9cc702.zip
Add testcase for previous patch.
-rw-r--r--testsuite/gna/bug063/dff.expected4
-rw-r--r--testsuite/gna/bug063/dff.vhdl17
-rwxr-xr-xtestsuite/gna/bug063/testsuite.sh11
3 files changed, 32 insertions, 0 deletions
diff --git a/testsuite/gna/bug063/dff.expected b/testsuite/gna/bug063/dff.expected
new file mode 100644
index 000000000..3e8fb698b
--- /dev/null
+++ b/testsuite/gna/bug063/dff.expected
@@ -0,0 +1,4 @@
+dff.vhdl:10:25: invalid use of UTF8 character for '
+dff.vhdl:11:23: invalid use of UTF8 character for '
+dff.vhdl:12:23: invalid use of UTF8 character for '
+dff.vhdl:12:42: invalid use of UTF8 character for '
diff --git a/testsuite/gna/bug063/dff.vhdl b/testsuite/gna/bug063/dff.vhdl
new file mode 100644
index 000000000..c1c7809a9
--- /dev/null
+++ b/testsuite/gna/bug063/dff.vhdl
@@ -0,0 +1,17 @@
+entity DFF is
+ port (CLK, CLEAR, D : in bit;
+ Q : out bit);
+end;
+
+architecture BEHAV of DFF is
+begin
+process (CLK, CLEAR)
+ begin
+ if (CLEAR = ‘1’) then
+ Q <= ‘0’;
+ elsif (CLK’event and CLK = ‘1’) then
+ Q <= D;
+ end if;
+ end process;
+end BEHAV;
+
diff --git a/testsuite/gna/bug063/testsuite.sh b/testsuite/gna/bug063/testsuite.sh
new file mode 100755
index 000000000..5bb108e0f
--- /dev/null
+++ b/testsuite/gna/bug063/testsuite.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure dff.vhdl 2> dff.out
+diff dff.out dff.expected
+
+rm -f dff.out
+clean
+
+echo "Test successful"