]> git.saurik.com Git - apple/objc4.git/blob - test/nilAPIArgs.m
objc4-818.2.tar.gz
[apple/objc4.git] / test / nilAPIArgs.m
1 /*
2 TEST_BUILD_OUTPUT
3 .*nilAPIArgs.m:\d+:\d+: warning: null passed to a callee that requires a non-null argument \[-Wnonnull\]
4 .*nilAPIArgs.m:\d+:\d+: warning: null passed to a callee that requires a non-null argument \[-Wnonnull\]
5 END
6 */
7
8 #include "test.h"
9
10 #import <objc/runtime.h>
11
12 int main() {
13 // ensure various bits of API don't crash when tossed nil parameters
14 class_conformsToProtocol(nil, nil);
15 method_setImplementation(nil, NULL);
16
17 succeed(__FILE__);
18 }