Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
43e4bbf2
Commit
43e4bbf2
authored
Apr 27, 2006
by
pfdietz
Browse files
Added tests of (ignorable (function (setf <symbol>)))
parent
0c8e9206
Changes
1
Show whitespace changes
Inline
Side-by-side
ansi-tests/ignorable.lsp
View file @
43e4bbf2
...
...
@@ -23,3 +23,34 @@
(declare (ignorable (function %f)))
(%f))
foo)
;;; TODO: add a test for (function (setf foo))
(deftest ignorable.5
(flet (((setf %f) (x y) nil))
(declare (ignorable (function (setf %f))))
:good)
:good)
(deftest ignorable.6
(flet (((setf %f) (x y) (setf (car y) x)))
(declare (ignorable (function (setf %f))))
(let ((z (cons 'a 'b)))
(values (setf (%f z) 'c) z)))
c (c . b))
(deftest ignorable.7
(labels (((setf %f) (x y) nil))
(declare (ignorable (function (setf %f))))
:good)
:good)
(deftest ignorable.8
(labels (((setf %f) (x y) (setf (car y) x)))
(declare (ignorable (function (setf %f))))
(let ((z (cons 'a 'b)))
(values (setf (%f z) 'c) z)))
c (c . b))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment