r2785: *** empty log message ***
[uffi.git] / examples / union.cl
index a18dfecb56aba015bf77f3a8bbfa7190f37b09fa..967fc25b1ef73ca6d64901cb1c25ffc05d1a0d2b 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Mar 2002
 ;;;;
-;;;; $Id: union.cl,v 1.6 2002/04/03 00:50:46 kevin Exp $
+;;;; $Id: union.cl,v 1.8 2002/09/20 05:38:01 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -48,6 +48,7 @@
     (uffi:free-foreign-object u))
   (values))
 
+#+test-uffi
 (defun test-union-1 ()
   (let ((u (uffi:allocate-foreign-object 'tunion1)))
     (setf (uffi:get-slot-value u 'tunion1 'uint)
@@ -66,8 +67,6 @@
               #\A
               :test #'eql
               :fail-info "Error with union character")
-    (print (uffi:get-slot-value u 'tunion1 'uint))
-    (print (uffi:get-slot-value u 'tunion1 'int))
     #-(or sparc sparc-v9)
     (util.test:test (> 0 (uffi:get-slot-value u 'tunion1 'int))
               t