mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
fix logic error in test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37550 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1629bbd638
commit
cece102d39
1 changed files with 2 additions and 3 deletions
|
@ -36,11 +36,10 @@ int main()
|
||||||
[associatedObjectTestAllocatedObject new];
|
[associatedObjectTestAllocatedObject new];
|
||||||
|
|
||||||
associatedObjectTestAssociatedObject *info =
|
associatedObjectTestAssociatedObject *info =
|
||||||
[[associatedObjectTestAssociatedObject new] autorelease];
|
[associatedObjectTestAssociatedObject new];
|
||||||
// silence -Wunused-variable
|
|
||||||
[info description];
|
|
||||||
objc_setAssociatedObject(object, &objc_setAssociatedObjectKey, info,
|
objc_setAssociatedObject(object, &objc_setAssociatedObjectKey, info,
|
||||||
OBJC_ASSOCIATION_RETAIN);
|
OBJC_ASSOCIATION_RETAIN);
|
||||||
|
[info release];
|
||||||
[object release];
|
[object release];
|
||||||
|
|
||||||
PASS(AssociatedObjectDeallocCalled == YES,
|
PASS(AssociatedObjectDeallocCalled == YES,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue