Remove old CVS $Id$ keyword
[uffi.git] / tests / structs.lisp
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          structs.lisp
6 ;;;; Purpose:       Test file for UFFI structures
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg
11 ;;;;
12 ;;;; *************************************************************************
13
14 (in-package #:uffi-tests)
15
16 ;; Compilation failure as reported by Edi Weitz
17
18
19 (uffi:def-struct foo
20     (bar :pointer-self))
21
22 (uffi:def-foreign-type foo-ptr (* foo))
23
24 ;; tests that compilation worked
25 (deftest :structs.1
26   (with-foreign-object (p 'foo)
27     t)
28   t)
29
30 (deftest :structs.2
31     (progn
32       (uffi:def-foreign-type foo-struct (:struct foo))
33       t)
34   t)