| Line | |
|---|
| 1 | (prove:plan 1) |
|---|
| 2 | |
|---|
| 3 | ;;; FIXME test shouldn't signal error |
|---|
| 4 | (prove:plan 1) |
|---|
| 5 | (let ((file (asdf:system-relative-pathname :abcl |
|---|
| 6 | "t/eg/compiler-fails-on-inline-recursion.lisp"))) |
|---|
| 7 | (prove:ok |
|---|
| 8 | (handler-case |
|---|
| 9 | (compile-file file) |
|---|
| 10 | ;;; anything signalled as error is a failure |
|---|
| 11 | (t (e) (prove:diag (format nil "Compilation failed signalling ~a" e)))) |
|---|
| 12 | (format nil "Compiling '~a'~%" file))) |
|---|
| 13 | |
|---|
| 14 | ;; <https://mailman.common-lisp.net/pipermail/armedbear-devel/2020-May/004054.html> |
|---|
| 15 | (prove:plan 1) |
|---|
| 16 | (prove:ok |
|---|
| 17 | (handler-case |
|---|
| 18 | (multiple-value-bind (compiled-function warnings failure) |
|---|
| 19 | (compile nil '(lambda () ((lambda () ((lambda () 0)))))) |
|---|
| 20 | (equal |
|---|
| 21 | (compiled-function warnings failure) |
|---|
| 22 | (t nil nil))) |
|---|
| 23 | (t (e) (prove:diag (format nil "Compilation failed signalling ~a" e)))) |
|---|
| 24 | "Able to compile nested lambda expression") |
|---|
| 25 | |
|---|
| 26 | ;; <https://mailman.common-lisp.net/pipermail/armedbear-devel/2020-May/004055.html> |
|---|
| 27 | (prove:plan 1) |
|---|
| 28 | (prove:ok |
|---|
| 29 | (handler-case |
|---|
| 30 | (multiple-value-bind (compiled-function warnings failure) |
|---|
| 31 | (compile nil '(lambda () (dotimes (i 1 2) (catch 'c 3)))) |
|---|
| 32 | (equal |
|---|
| 33 | (compiled-function warnings failure) |
|---|
| 34 | (t nil nil))) |
|---|
| 35 | (t (e) (prove:diag (format nil "Compilation failed signalling ~a" e)))) |
|---|
| 36 | "Able to compile tagbody not found form.") |
|---|
| 37 | |
|---|
| 38 | (prove:finalize) |
|---|
| 39 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.