diff options
Diffstat (limited to 'testsuite/gna/issue636')
-rw-r--r-- | testsuite/gna/issue636/e.vhdl | 5 | ||||
-rwxr-xr-x | testsuite/gna/issue636/testsuite.sh | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/gna/issue636/e.vhdl b/testsuite/gna/issue636/e.vhdl new file mode 100644 index 000000000..df1b87803 --- /dev/null +++ b/testsuite/gna/issue636/e.vhdl @@ -0,0 +1,5 @@ +entity e is + function f(x:bit) return bit is begin return '0'; end function; + attribute a :bit; + constant c :bit := f('0')'a; +end entity; diff --git a/testsuite/gna/issue636/testsuite.sh b/testsuite/gna/issue636/testsuite.sh new file mode 100755 index 000000000..411883a4b --- /dev/null +++ b/testsuite/gna/issue636/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure e.vhdl + +clean + +echo "Test successful" |