;; -*-theme-d-*-

;; Copyright (C) 2015 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 test281)

  (import (standard-library core)
	  (tests test280)
	  (standard-library console-io))

  (define-simple-proc disp (((obj <object>)) <none> nonpure)
    (console-display obj)
    (console-newline))

  (define-simple-proc main (() <none> nonpure)
    (let ((a (make-a 10))
	  (b (make-b 5 -1.1)))
      (disp (my-rep a "gtk"))
      (disp (my-rep b "pango"))
      (disp (get-x a))
      (disp (get-x b))
      (disp (get-y b))
      (set-x! a -1)
      (set-x! b 6)
      (set-y! b 2.1)
      (disp (get-x a))
      (disp (get-x b))
      (disp (get-y b)))))

