Skip to content
Snippets Groups Projects
Commit 9cabb942 authored by pfdietz's avatar pfdietz
Browse files

Add tests for IGNORE, IGNORABLE declarations

parent e4b23e2f
No related branches found
No related tags found
No related merge requests found
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sat May 21 08:16:27 2005
;;;; Contains: Tests of the IGNORABLE declaration
(in-package :cl-test)
(deftest ignorable.1
(let ((x 'foo)) (declare (ignorable x)))
nil)
(deftest ignorable.2
(let ((x 'foo)) (declare (ignorable x)) x)
foo)
(deftest ignorable.3
(flet ((%f () 'foo))
(declare (ignorable (function %f))))
nil)
(deftest ignorable.4
(flet ((%f () 'foo))
(declare (ignorable (function %f)))
(%f))
foo)
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sat May 21 07:59:24 2005
;;;; Contains: Tests of the IGNORE declarations
(in-package :cl-test)
(deftest ignore.1
(let ((x 'foo)) (declare (ignore x)))
nil)
(deftest ignore.2
(let ((x 'foo)) (declare (ignore x)) x)
foo)
(deftest ignore.3
(flet ((%f () 'foo))
(declare (ignore (function %f))))
nil)
(deftest ignore.4
(flet ((%f () 'foo))
(declare (ignore (function %f)))
(%f))
foo)
......@@ -14,3 +14,6 @@
(load "proclaim.lsp")
(load "declaim.lsp")
(load "locally.lsp")
(load "ignore.lsp")
(load "ignorable.lsp")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment