diff options
author | Tristan Gingold | 2015-12-22 20:22:52 +0100 |
---|---|---|
committer | Tristan Gingold | 2015-12-22 20:22:52 +0100 |
commit | 1120e5730857dc06e1a49d6ad178b1367b383351 (patch) | |
tree | 11efc90e1cfb74e41f76856a4288a4f58d209d57 /testsuite | |
parent | 53d4861c853bc057b5db337f617d0311bc3a1e85 (diff) | |
download | ghdl-1120e5730857dc06e1a49d6ad178b1367b383351.tar.gz ghdl-1120e5730857dc06e1a49d6ad178b1367b383351.tar.bz2 ghdl-1120e5730857dc06e1a49d6ad178b1367b383351.zip |
Add test for --warn-reserved
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/bug030/reserved1.vhdl | 11 | ||||
-rw-r--r-- | testsuite/gna/bug030/reserved2.vhdl | 11 | ||||
-rw-r--r-- | testsuite/gna/bug030/reserved3.vhdl | 11 | ||||
-rw-r--r-- | testsuite/gna/bug030/reserved4.vhdl | 11 | ||||
-rwxr-xr-x | testsuite/gna/bug030/testsuite.sh | 13 |
5 files changed, 57 insertions, 0 deletions
diff --git a/testsuite/gna/bug030/reserved1.vhdl b/testsuite/gna/bug030/reserved1.vhdl new file mode 100644 index 0000000..b268930 --- /dev/null +++ b/testsuite/gna/bug030/reserved1.vhdl @@ -0,0 +1,11 @@ +entity reserved1 is +end reserved1; + +architecture behav of reserved1 is + signal quantity : bit; +begin + process + begin + wait; + end process; +end behav; diff --git a/testsuite/gna/bug030/reserved2.vhdl b/testsuite/gna/bug030/reserved2.vhdl new file mode 100644 index 0000000..ba62306 --- /dev/null +++ b/testsuite/gna/bug030/reserved2.vhdl @@ -0,0 +1,11 @@ +entity reserved2 is +end; + +architecture behav of reserved2 is + signal context : bit; +begin + process + begin + wait; + end process; +end behav; diff --git a/testsuite/gna/bug030/reserved3.vhdl b/testsuite/gna/bug030/reserved3.vhdl new file mode 100644 index 0000000..441e8cf --- /dev/null +++ b/testsuite/gna/bug030/reserved3.vhdl @@ -0,0 +1,11 @@ +entity reserved3 is +end; + +architecture behav of reserved3 is + signal protected : bit; +begin + process + begin + wait; + end process; +end behav; diff --git a/testsuite/gna/bug030/reserved4.vhdl b/testsuite/gna/bug030/reserved4.vhdl new file mode 100644 index 0000000..922c5e4 --- /dev/null +++ b/testsuite/gna/bug030/reserved4.vhdl @@ -0,0 +1,11 @@ +entity reserved4 is +end; + +architecture behav of reserved4 is + signal xnor : bit; +begin + process + begin + wait; + end process; +end behav; diff --git a/testsuite/gna/bug030/testsuite.sh b/testsuite/gna/bug030/testsuite.sh new file mode 100755 index 0000000..18d8314 --- /dev/null +++ b/testsuite/gna/bug030/testsuite.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze --warn-reserved reserved1.vhdl +analyze --warn-reserved reserved2.vhdl +analyze --warn-reserved reserved3.vhdl +analyze --warn-reserved --std=87 reserved4.vhdl + +clean +clean --std=87 + +echo "Test successful" |