diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/bug036/phys.vhdl | 7 | ||||
-rw-r--r-- | testsuite/gna/bug036/phys2.vhdl | 9 | ||||
-rwxr-xr-x | testsuite/gna/bug036/testsuite.sh | 10 |
3 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gna/bug036/phys.vhdl b/testsuite/gna/bug036/phys.vhdl new file mode 100644 index 000000000..eca17cc20 --- /dev/null +++ b/testsuite/gna/bug036/phys.vhdl @@ -0,0 +1,7 @@ +package phys is +type ANGLE is range INTEGER'range units + sec; + min = 60 sec; + deg = 60 min; +end units; +end phys; diff --git a/testsuite/gna/bug036/phys2.vhdl b/testsuite/gna/bug036/phys2.vhdl new file mode 100644 index 000000000..c86674f8b --- /dev/null +++ b/testsuite/gna/bug036/phys2.vhdl @@ -0,0 +1,9 @@ +package phys2 is + subtype mybv is bit_vector (0 to 3600000); + + type ANGLE is range mybv'range units + sec; + min = 60 sec; + deg = 60 min; + end units; +end phys2; diff --git a/testsuite/gna/bug036/testsuite.sh b/testsuite/gna/bug036/testsuite.sh new file mode 100755 index 000000000..14c3f0d76 --- /dev/null +++ b/testsuite/gna/bug036/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure phys.vhdl +analyze phys2.vhdl + +clean + +echo "Test successful" |