source: trunk/source/tests/ansi-tests/declaim.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 11 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 1.1 KB
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat May 21 07:44:07 2005
4;;;; Contains: Tests of DECLAIM
5
6(in-package :cl-test)
7
8(deftest declaim.1
9  (progn (declaim) nil)
10  nil)
11
12(deftest declaim.2
13  (progn (eval `(declaim (optimize))) nil)
14  nil)
15
16(deftest declaim.3
17  (progn (eval `(declaim (inline))) nil)
18  nil)
19
20(deftest declaim.4
21  (progn (eval `(declaim (notinline))) nil)
22  nil)
23
24(deftest declaim.5
25  (progn (eval `(declaim (type t))) nil)
26  nil)
27
28(deftest declaim.6
29  (progn (eval `(declaim (special))) nil)
30  nil)
31
32(deftest declaim.7
33  (progn (eval `(declaim (integer))) nil)
34  nil)
35
36(deftest declaim.8
37  (progn (eval `(declaim (declaration))) nil)
38  nil)
39
40(deftest declaim.9
41  (progn (eval `(declaim (ftype (function (t) t)))) nil)
42  nil)
43
44(deftest declaim.10
45  (let ((sym (gensym)))
46    (eval `(declaim (declaration ,sym)))
47    (eval `(declaim (,sym)))
48    nil)
49  nil)
50
51(deftest declaim.11
52  (let ((sym (gensym)))
53    (eval `(declaim (optimize) (special ,sym) (inline) (special)))
54    (eval `(flet ((%f () ,sym))
55             (let ((,sym :good)) (%f)))))
56  :good)
Note: See TracBrowser for help on using the repository browser.