;; -*-theme-d-*-

;; Copyright (C) 2014  Tommi Höynälänmaa
;; Distributed under GNU General Public License version 3,
;; see file doc/GPL-3.

;; Expected results: translation and running OK

(define-proper-program (tests test658)

  (import (standard-library core)
	  (standard-library math)
	  (standard-library console-io))

  (define-simple-proc my-proc (((nr1 <number>) (nr2 <number>)) <none> nonpure)
    (console-display-line (+ nr1 nr2))
    (console-display-line (- nr1 nr2))
    (console-display-line (* nr1 nr2))
    (console-display-line (/ nr1 nr2))
    (console-display-line (expt nr1 nr2))
    (console-newline))

  (define-simple-proc main (() <none> nonpure)
    (my-proc 1 2)
    (my-proc 1 2.5)
    (my-proc 2 (complex 1.0 2.5))
    (my-proc 2.0 2)
    (my-proc 1.5 2.5)
    (my-proc 2.5 (complex 1.0 2.5))
    (my-proc (complex 0.5 -1.5) 2)
    (my-proc (complex 0.5 -1.5) 2.5)
    (my-proc (complex 0.5 -1.5) (complex 1.0 5.5))))
