;; -*-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 error

(define-proper-program (tests test711)

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

  (define-prim-class <bytevector>
    #t #t #t ()
    bytevector? bytevector=? eqv? bytevector=?)

  (define-class <a> <bytevector> #t #t #t public ()
    ())
  
  (prevent-stripping <bytevector>)

  (define make-bytevector
    (prim-proc make-bytevector (<integer> <integer>) <object> (pure)))

  (define-simple-proc main (() <none> nonpure)
    (let ((bv (make-bytevector 10 20)))
      (console-display-line bv))))
