Skip to content

Commit 560e95e

Browse files
committed
Test for compiler problems with LABELS and INLINE declaration
From <#591>.
1 parent 90a3066 commit 560e95e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

t/compiler-inline.lisp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
;;;; <https://github.com/armedbear/abcl/issues/591>
2+
(unless (ignore-errors (asdf:load-system :fset))
3+
(ql:quickload :fset))
4+
5+
(in-package :fset-user)
6+
(defun foo (x)
7+
(labels ((bar (x)
8+
(cond ((null x) nil)
9+
((eq (car x) '&rest) (tail (cadr x)))
10+
(t (cons (car x) (bar (cdr x))))))
11+
(tail (x)
12+
(list 'local-tail x)))
13+
(bar x)))
14+
(compile 'foo)
15+
16+
(prove:plan 1)
17+
(prove:is
18+
(foo '(a &rest b))
19+
'(a local-tail b))
20+
(prove:finalize)
21+

0 commit comments

Comments
 (0)