diff options
Diffstat (limited to 'src/ortho/oread/tests/if1.on')
-rw-r--r-- | src/ortho/oread/tests/if1.on | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ortho/oread/tests/if1.on b/src/ortho/oread/tests/if1.on index 16d9b9835..5cae79500 100644 --- a/src/ortho/oread/tests/if1.on +++ b/src/ortho/oread/tests/if1.on @@ -1,12 +1,12 @@ -type __ghdl_bool_type is boolean {false, true}; -type __ghdl_integer is signed (32); +TYPE __ghdl_bool_type IS BOOLEAN {FALSE, TRUE}; +TYPE __ghdl_integer IS SIGNED (32); -public function test_arg (v : __ghdl_bool_type) return __ghdl_integer -declare -begin - if v then - return __ghdl_integer'[1]; - else - return __ghdl_integer'[0]; - end if; -end; +PUBLIC FUNCTION test_arg (v : __ghdl_bool_type) RETURN __ghdl_integer +DECLARE +BEGIN + IF v THEN + RETURN __ghdl_integer'[1]; + ELSE + RETURN __ghdl_integer'[0]; + END IF; +END; |