;; -*-theme-d-*-

;; Copyright (C) 2018  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 test660)

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

  (define-simple-proc main (() <none> nonpure)
    (console-display-line (bitwise-not 5))
    (console-display-line (bitwise-and #b10110001 #b01111010))
    (console-display-line (bitwise-ior #b10110001 #b01111010))
    (console-display-line (bitwise-xor #b10110001 #b01111010))
    (console-display-line (bitwise-arithmetic-shift 10 2))
    (console-display-line (bitwise-arithmetic-shift 10 -2))
    (console-display-line (bitwise-arithmetic-shift-right 10 2))
    (console-display-line (bitwise-arithmetic-shift-left 10 2))
    (console-display-line (ash 1 3))))
