;; -*-theme-d-*-

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

;; Expected results: translation and running OK
;;   The second equal-object? call returns #t. Guile optimizes
;;   l1 and l2 to refer to the same location.


(define-proper-program (tests test556)


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


  (define main
    (lambda (() <none> nonpure)
      (let ((l1 '(1 2 3 4 5))
	    (l2 '(1 2 3 4 5))
	    (l3 '(1 2 4 3 5)))
	(console-display-line (equal? l1 l1))
	(console-display-line (equal? l1 l2))
	(console-display-line (equal? l1 l3))
	(console-display-line (equal-values? l1 l1))
	(console-display-line (equal-values? l1 l2))
	(console-display-line (equal-values? l1 l3))
	(console-display-line (equal-objects? l1 l1))
	(console-display-line (equal-objects? l1 l2))
	(console-display-line (equal-objects? l1 l3))
	(console-display-line (equal-contents? l1 l1))
	(console-display-line (equal-contents? l1 l2))
	(console-display-line (equal-contents? l1 l3))))))
