projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.19.1: DERIVE-TYPE optimizer for %%PRIMITIVE
[sbcl.git]
/
tests
/
alien.impure.lisp
diff --git
a/tests/alien.impure.lisp
b/tests/alien.impure.lisp
index
d1ee3e3
..
8eda29a
100644
(file)
--- a/
tests/alien.impure.lisp
+++ b/
tests/alien.impure.lisp
@@
-203,4
+203,11
@@
(error ()
:ok)))))
(error ()
:ok)))))
+;;; Unused local alien caused a compiler error
+(with-test (:name unused-local-alien)
+ (let ((fun `(lambda ()
+ (sb-alien:with-alien ((alien1923 (array (sb-alien:unsigned 8) 72)))
+ (values)))))
+ (assert (not (funcall (compile nil fun))))))
+
;;; success
;;; success