diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-08-29 09:46:20 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-08-29 09:46:20 -0400 |
commit | ec98dd863237aa4a1853e0efb589f2da597c5640 (patch) | |
tree | b5f129020b9dcb0f1083639725ca920ec3b5c54e /check/type/mulop | |
parent | dd07055aca1c45d147d773350e0c21930822a74f (diff) |
Add more test files
Diffstat (limited to 'check/type/mulop')
-rw-r--r-- | check/type/mulop/fail-int.p | 6 | ||||
-rw-r--r-- | check/type/mulop/fail-real.p | 5 | ||||
-rw-r--r-- | check/type/mulop/pass-int.p | 5 | ||||
-rw-r--r-- | check/type/mulop/pass-real.p | 5 |
4 files changed, 21 insertions, 0 deletions
diff --git a/check/type/mulop/fail-int.p b/check/type/mulop/fail-int.p new file mode 100644 index 0000000..fdd83e3 --- /dev/null +++ b/check/type/mulop/fail-int.p @@ -0,0 +1,6 @@ +program main ( input, output ); + var a: integer; +begin + a := 1 * 1.1; + a := 1.1 +end. diff --git a/check/type/mulop/fail-real.p b/check/type/mulop/fail-real.p new file mode 100644 index 0000000..8975458 --- /dev/null +++ b/check/type/mulop/fail-real.p @@ -0,0 +1,5 @@ +program main ( input, output ); + var a: integer; +begin + a := 1.1 * 1 +end. diff --git a/check/type/mulop/pass-int.p b/check/type/mulop/pass-int.p new file mode 100644 index 0000000..5f1f327 --- /dev/null +++ b/check/type/mulop/pass-int.p @@ -0,0 +1,5 @@ +program main ( input, output ); + var a: integer; +begin + a := 1 * 1 +end. diff --git a/check/type/mulop/pass-real.p b/check/type/mulop/pass-real.p new file mode 100644 index 0000000..d03ee76 --- /dev/null +++ b/check/type/mulop/pass-real.p @@ -0,0 +1,5 @@ +program main ( input, output ); + var a: real; +begin + a := 3.1 * 0.04 +end. |