diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-12-08 05:31:45 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-12-08 05:31:45 +0100 |
commit | e7f223da0ad86e2e00074302256aa43b43a83e9c (patch) | |
tree | 1c3eee24d7413e0b962f21d975a771ea4d46ce9b /src/ortho/oread/tests/test_init.on | |
parent | 7b556be5180c421a13e93e24393f3ab77df8f864 (diff) | |
download | ghdl-e7f223da0ad86e2e00074302256aa43b43a83e9c.tar.gz ghdl-e7f223da0ad86e2e00074302256aa43b43a83e9c.tar.bz2 ghdl-e7f223da0ad86e2e00074302256aa43b43a83e9c.zip |
Add tests for oread (some are old)
Diffstat (limited to 'src/ortho/oread/tests/test_init.on')
-rw-r--r-- | src/ortho/oread/tests/test_init.on | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ortho/oread/tests/test_init.on b/src/ortho/oread/tests/test_init.on new file mode 100644 index 000000000..b631e16e5 --- /dev/null +++ b/src/ortho/oread/tests/test_init.on @@ -0,0 +1,36 @@ +TYPE __ghdl_size_type IS UNSIGNED (32); + +TYPE __ghdl_index_type IS UNSIGNED (32); + +TYPE __ghdl_char IS UNSIGNED (8); + +TYPE __ghdl_chararray IS ARRAY [__ghdl_index_type] OF __ghdl_char; + +TYPE __ghdl_char_ptr IS ACCESS __ghdl_chararray; + +TYPE __ghdl_str_len IS RECORD + len: __ghdl_index_type; + str: __ghdl_char_ptr; +END RECORD; + +PRIVATE VAR c : __ghdl_str_len; + +CONSTANT c := __ghdl_str_len'[DEFAULT]; + +PUBLIC VAR c2 : __ghdl_str_len; + +CONSTANT c2 := { __ghdl_index_type'[1], __ghdl_char_ptr'[DEFAULT]}; + + + +TYPE rec1_type IS RECORD; + +TYPE rec1_acc IS ACCESS rec1_type; + +TYPE rec1_type IS RECORD + len: __ghdl_index_type; +END RECORD; + +PRIVATE VAR c3 : rec1_type; + +CONSTANT c3 := rec1_type'[DEFAULT]; |