From ec98dd863237aa4a1853e0efb589f2da597c5640 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Thu, 29 Aug 2019 09:46:20 -0400 Subject: Add more test files --- check/type/mulop/fail-int.p | 6 ++++++ check/type/mulop/fail-real.p | 5 +++++ check/type/mulop/pass-int.p | 5 +++++ check/type/mulop/pass-real.p | 5 +++++ 4 files changed, 21 insertions(+) create mode 100644 check/type/mulop/fail-int.p create mode 100644 check/type/mulop/fail-real.p create mode 100644 check/type/mulop/pass-int.p create mode 100644 check/type/mulop/pass-real.p (limited to 'check/type/mulop') 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. -- cgit v1.1