]> git.saurik.com Git - apple/objc4.git/blob - test/methodListSmallMutableMemory.mm
objc4-787.1.tar.gz
[apple/objc4.git] / test / methodListSmallMutableMemory.mm
1 /*
2 TEST_CFLAGS -std=c++11
3 TEST_CRASHES
4 TEST_RUN_OUTPUT
5 objc\[\d+\]: CLASS: class 'Foo' 0x[0-9a-fA-F]+ small method list 0x[0-9a-fA-F]+ is not in immutable memory
6 objc\[\d+\]: HALTED
7 END
8 */
9
10 #define MUTABLE_METHOD_LIST 1
11
12 #include "methodListSmall.h"
13
14 int main() {
15 Class fooClass = (__bridge Class)&FooClass;
16 [fooClass new];
17 fail("Should have crashed");
18 }