+;;; As reported by Baughn on #lisp, ALIEN-FUNCALL loops forever when
+;;; compiled with (DEBUG 3).
+(sb-kernel::values-specifier-type-cache-clear)
+(proclaim '(optimize (debug 3)))
+(let ((f (compile nil '(lambda (v)
+ (sb-alien:alien-funcall (sb-alien:extern-alien "getenv"
+ (function (c-string) c-string))
+ v)))))
+ (assert (typep (funcall f "HOME") '(or string null))))
+