X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.test.sh;h=f2921ef21be2a00031e44155de4e35faf7874366;hb=31f68584d0732dc0d17f379773e5f87f1e5a78ad;hp=4c731b23dc1e1721e02bf35b695b9990e6697692;hpb=5b43e28a5a9f0fcdefc2132840492e2e382876c6;p=sbcl.git diff --git a/tests/compiler.test.sh b/tests/compiler.test.sh index 4c731b2..f2921ef 100644 --- a/tests/compiler.test.sh +++ b/tests/compiler.test.sh @@ -6,16 +6,16 @@ # While most of SBCL is derived from the CMU CL system, the test # files (like this one) were written from scratch after the fork # from CMU CL. -# +# # This software is in the public domain and is provided with # absolutely no warranty. See the COPYING and CREDITS files for # more information. -. expect.sh +. ./expect.sh + +use_test_subdirectory -base_tmpfilename="compiler-test-$$-tmp" -tmpfilename="$base_tmpfilename.lisp" -compiled_tmpfilename="$base_tmpfilename.fasl" +tmpfilename="$TEST_FILESTEM.lisp" # This should fail, as type inference should show that the call to FOO # will return something of the wrong type. @@ -26,6 +26,14 @@ cat > $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < y 1) (funcall (if (> y 0) #'foo #'identity) y)))) +EOF +expect_clean_compile $tmpfilename + # This shouldn't fail despite the apparent type mismatch, because of # the NOTINLINE declaration. cat > $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename <