diff options
Diffstat (limited to 'testsuite/gna/ticket57/test.vhdl')
-rw-r--r-- | testsuite/gna/ticket57/test.vhdl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/ticket57/test.vhdl b/testsuite/gna/ticket57/test.vhdl new file mode 100644 index 0000000..3e453a2 --- /dev/null +++ b/testsuite/gna/ticket57/test.vhdl @@ -0,0 +1,24 @@ +use std.textio.all; + +entity test is +end entity; + +architecture a of test is + type file_t is file of character; + function fun(var : boolean) return boolean is + file f : file_t; + variable l : line; + begin + file_open(f, "filename.txt", write_mode); + write(f, character'( 'x' )); + write(f, LF); + file_close(f); + return var; + end function; +begin + main : process + constant c : boolean := fun(false); + begin + wait; + end process; +end architecture; |