Comment 3 for bug 1528719

Revision history for this message
Angel Peralta (acort3255) wrote :

Is this truly a bug? It seems like passing pointer to foreign struct should not be passed by value to the corresponding c function:

(defcfun "sumpair" :int
  (p (:struct struct-pair)))

corresponding failing test:

(deftest (fsbv.wfo :expected-to-fail t)
    (with-foreign-object (arg '(:struct struct-pair))
      (convert-into-foreign-memory '(40 . 2) '(:struct struct-pair) arg)
      (sumpair arg))
  42)

Is there something I'm missing here?