]> git.saurik.com Git - apple/objc4.git/blame - test/associationForbidden.m
objc4-818.2.tar.gz
[apple/objc4.git] / test / associationForbidden.m
CommitLineData
13ba007e
A
1// TEST_CRASHES
2/*
3TEST_RUN_OUTPUT
4Associated object is 0x[0-9a-fA-F]+
5objc\[\d+\]: objc_setAssociatedObject called on instance \(0x[0-9a-fA-F]+\) of class Forbidden which does not allow associated objects
6objc\[\d+\]: HALTED
7END
8*/
9
10#include "associationForbidden.h"
11
12void test(void)
13{
14 ShouldSucceed([Normal alloc]);
15 ShouldFail([Forbidden alloc]);
16}