mirror of
https://github.com/darlinghq/darling-objc4.git
synced 2024-11-23 04:09:46 +00:00
22 lines
464 B
Mathematica
22 lines
464 B
Mathematica
|
// TEST_CRASHES
|
||
|
/*
|
||
|
TEST_RUN_OUTPUT
|
||
|
Associated object is 0x[0-9a-fA-F]+
|
||
|
objc\[\d+\]: objc_setAssociatedObject called on instance \(0x[0-9a-fA-F]+\) of class ForbiddenSubclass which does not allow associated objects
|
||
|
objc\[\d+\]: HALTED
|
||
|
END
|
||
|
*/
|
||
|
|
||
|
#include "associationForbidden.h"
|
||
|
|
||
|
@interface ForbiddenSubclass : Forbidden
|
||
|
@end
|
||
|
@implementation ForbiddenSubclass
|
||
|
@end
|
||
|
|
||
|
void test(void)
|
||
|
{
|
||
|
ShouldSucceed([Normal alloc]);
|
||
|
ShouldSucceed([ForbiddenSubclass alloc]);
|
||
|
}
|