projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix automatic &rest to &more conversion in unsafe code
[sbcl.git]
/
tests
/
compiler.test.sh
diff --git
a/tests/compiler.test.sh
b/tests/compiler.test.sh
index
bac5690
..
87e3026
100644
(file)
--- a/
tests/compiler.test.sh
+++ b/
tests/compiler.test.sh
@@
-26,6
+26,14
@@
cat > $tmpfilename <<EOF
EOF
expect_failed_compile $tmpfilename
EOF
expect_failed_compile $tmpfilename
+# This should fail, as type inference should show that the call to FOO
+# has a wrong number of args.
+cat > $tmpfilename <<EOF
+ (in-package :cl-user)
+ (defun foo (x) (or x (foo x x)))
+EOF
+expect_failed_compile $tmpfilename
+
# This should fail, as we define a function multiply in the same file
# (CLHS 3.2.2.3).
cat > $tmpfilename <<EOF
# This should fail, as we define a function multiply in the same file
# (CLHS 3.2.2.3).
cat > $tmpfilename <<EOF
@@
-452,6
+460,14
@@
cat > $tmpfilename <<EOF
(eval-when (:compile-toplevel)
(error "ERROR within EVAL-WHEN."))
EOF
(eval-when (:compile-toplevel)
(error "ERROR within EVAL-WHEN."))
EOF
-expect_condition_during_compile sb-c:compiler-error $tmpfilename
+expect_condition_during_compile simple-error $tmpfilename
+
+cat > $tmpfilename <<EOF
+(defun slot-name-incf (s)
+ (with-slots (no-such-slot) s
+ (incf no-such-slot)))
+EOF
+expect_clean_cload $tmpfilename
+
# success
exit $EXIT_TEST_WIN
# success
exit $EXIT_TEST_WIN