X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=c9989bc6faefc7e38ea8708ea52657c75a1dbf42;hb=007bcd5aac2f3a1e714563bd39f7a2db2d0bf7c2;hp=6e761335d3e8df4f5dd6b1eaca77a74e3b90414d;hpb=60053af56e69de2fd251cde8fcdb2ea7f01d0b01;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 6e76133..c9989bc 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -14,7 +14,9 @@ # absolutely no warranty. See the COPYING and CREDITS files for # more information. +. ./expect.sh . ./subr.sh + use_test_subdirectory echo //entering foreign.test.sh @@ -36,6 +38,9 @@ build_so() ( esac if [ "`uname`" = Darwin ]; then SO_FLAGS="-bundle" + if run_sbcl --eval '(sb-ext:quit :unix-status #+x86-64 0 #-x86-64 1)'; then + CFLAGS="$CFLAGS -arch x86_64" + fi else SO_FLAGS="-shared" fi @@ -97,6 +102,14 @@ int long_test2(int i1, int i2, int i3, int i4, int i5, int i6, return (l1 == (1 + powish(2,37))); } +int long_sap_test1(int *p1, long long l1) { + return (l1 == (3 + powish(2,*p1))); +} + +int long_sap_test2(int *p1, int i1, long long l1) { + return (l1 == (3 + powish(2,*p1))); +} + long long return_long_long() { return powish(2,33); } @@ -124,8 +137,8 @@ cat > $TEST_FILESTEM.base.lisp < $TEST_FILESTEM.base.lisp < $TEST_FILESTEM.test.lisp < $TEST_FILESTEM.test.lisp < $TEST_FILESTEM.test.lisp < $TEST_FILESTEM.alien.enum.lisp <