;; -*-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 test419)


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


  (define-simple-proc make-my-vector (() (:mutable-vector <real>) pure)
    (force-pure-expr
     (let ((v (make-mutable-vector <real> 10 0.0)))
       (mutable-vector-set! v 0 1.5)
       v)))

  (define-simple-proc main (() <none> nonpure)
    (let ((v (make-my-vector)))
      (console-display-line
       (mutable-vector-ref v 0)))))

