r11214: 2006-10-10 Kevin Rosenberg (kevin@rosenberg.net)
[uffi.git] / tests / structs.lisp
index 1522a15f04110456cf649245086ac9045a6dd276..068ee1f7b2204da09e91f10df8c4591c887b7746 100644 (file)
@@ -3,13 +3,13 @@
 ;;;; FILE IDENTIFICATION
 ;;;;
 ;;;; Name:          structs.lisp
-;;;; Purpose:       UFFI Example file to strtol, uses pointer arithmetic
+;;;; Purpose:       Test file for UFFI structures
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: structs.lisp,v 1.1 2003/08/13 18:53:42 kevin Exp $
+;;;; $Id$
 ;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg
 ;;;;
 ;;;; *************************************************************************
 
 
 (uffi:def-foreign-type foo-ptr (* foo))
 
-(uffi:def-function "baz"
-    ((x :int))
-  :returning foo-ptr
-  :module "frob")
-
-(defun test ()
+;; tests that compilation worked
+(deftest :structs.1 
   (with-foreign-object (p 'foo)
-    (baz p)))
-
+    t)
+  t)
+
+(deftest :structs.2
+    (progn
+      (uffi:def-foreign-type foo-struct (:struct foo))
+      t)
+  t)