summaryrefslogtreecommitdiff
path: root/Lisp/tests.lisp
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-02-12 18:20:54 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-02-12 18:20:54 +0100
commit308b848cc4e6630356d84fc43530739a72374130 (patch)
tree5bc36df8d4fca2906951c473c508adbd75537dd5 /Lisp/tests.lisp
parent1f87c8d3385203966e88711eae9bf0e5a7493b43 (diff)
When overriding a return type specification, save the nominal type for later use.
darcs-hash:40bdaeb5687e6ad142766f1ee041231e875c1d49
Diffstat (limited to 'Lisp/tests.lisp')
-rw-r--r--Lisp/tests.lisp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Lisp/tests.lisp b/Lisp/tests.lisp
index 1a63d9d..60e9387 100644
--- a/Lisp/tests.lisp
+++ b/Lisp/tests.lisp
@@ -23,7 +23,8 @@
#:struct #:union #:pointer #:oneway #:out #:in
#:inout #:const #:parse-typespec #:objective-c-class
#:bit-field #:opaque #:bycopy #:byref
- #:primitive-invoke #:print-typespec-to-string))
+ #:primitive-invoke #:print-typespec-to-string
+ #:nominally))
(in-package #:mulk.objective-cl.tests)
(in-root-suite)
@@ -194,8 +195,8 @@
(:char ())
(:unsigned-char ()))
(struct () "?"
- (:int ())
- (:unsigned-int ())))
+ (:int ((nominally :char)))
+ (:unsigned-int ((nominally :unsigned-char)))))
:test #'equalp)))
(let ((funky-spec (parse-typespec "{?=sS}")))
(is (member funky-spec
@@ -203,8 +204,8 @@
(:short ())
(:unsigned-short ()))
(struct () "?"
- (:int ())
- (:unsigned-int ())))
+ (:int ((nominally :short)))
+ (:unsigned-int ((nominally :unsigned-short)))))
:test #'equalp)))
(is (equal (parse-typespec "{Mulk=*{Untermulk={Unteruntermulk=}}i}")
'(struct () "Mulk"