Fix encoding of popcntd
[sbcl.git] / tests / mop-16.impure-cload.lisp
bloba7d5e0918a05b42b91f297bc0fc410df30060370
1 ;;;; miscellaneous side-effectful tests of the MOP
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; While most of SBCL is derived from the CMU CL system, the test
7 ;;;; files (like this one) were written from scratch after the fork
8 ;;;; from CMU CL.
9 ;;;;
10 ;;;; This software is in the public domain and is provided with
11 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
12 ;;;; more information.
14 ;;; this file tests that it is not possible to add an
15 ;;; optimization-invalidating method to #'(SETF
16 ;;; SLOT-VALUE-USING-CLASS). If a way is found to preserve the
17 ;;; optimization, or if the optimization is deemed to be invalid, then
18 ;;; this test can go away.
20 (defclass foo-class (standard-class) ())
22 (defclass foo-effective-slot-definition (standard-effective-slot-definition)
23 ())
25 (with-test (:name :mop-16)
26 (assert-error
27 (defmethod (setf sb-mop:slot-value-using-class)
28 ((new-value integer) (class foo-class)
29 (object standard-object) (slotd foo-effective-slot-definition))
30 "Haha")))