mirror of
https://github.com/darlinghq/darling-objc4.git
synced 2024-11-23 12:19:48 +00:00
19 lines
479 B
Objective-C
19 lines
479 B
Objective-C
/*
|
|
TEST_BUILD_OUTPUT
|
|
.*nilAPIArgs.m:\d+:\d+: warning: null passed to a callee that requires a non-null argument \[-Wnonnull\]
|
|
.*nilAPIArgs.m:\d+:\d+: warning: null passed to a callee that requires a non-null argument \[-Wnonnull\]
|
|
END
|
|
*/
|
|
|
|
#include "test.h"
|
|
|
|
#import <objc/runtime.h>
|
|
|
|
int main() {
|
|
// ensure various bits of API don't crash when tossed nil parameters
|
|
class_conformsToProtocol(nil, nil);
|
|
method_setImplementation(nil, NULL);
|
|
|
|
succeed(__FILE__);
|
|
}
|