diff options
Diffstat (limited to 'src/ortho/oread/tests/fp_add.on')
-rw-r--r-- | src/ortho/oread/tests/fp_add.on | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ortho/oread/tests/fp_add.on b/src/ortho/oread/tests/fp_add.on new file mode 100644 index 000000000..949f370de --- /dev/null +++ b/src/ortho/oread/tests/fp_add.on @@ -0,0 +1,13 @@ +TYPE float IS FLOAT; + +PRIVATE FUNCTION add_float (a : float; b : float) RETURN float +DECLARE +BEGIN + RETURN a +# b; +END; + +PRIVATE FUNCTION add3_float (a : float; b : float; c : float) RETURN float +DECLARE +BEGIN + RETURN add_float (a, add_float (b, c)); +END; |