;; -*-theme-d-*-

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

;; Expected results: runtime error (exception raised)


(define-proper-program (tests test422)


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


  (define-simple-proc my-proc (((i <integer>)) <integer> pure)
    (raise-simple 'error))

  (define main
    (lambda (() <none> nonpure)
      (let ((i <integer> 1))
	(console-display (my-proc i))))))

