You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
499 B
35 lines
499 B
10 years ago
|
/*
|
||
6 years ago
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
9 years ago
|
*
|
||
7 years ago
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
9 years ago
|
*/
|
||
10 years ago
|
|
||
|
#import <Foundation/NSObject.h>
|
||
|
|
||
8 years ago
|
@interface NilParamA : NSObject {
|
||
10 years ago
|
int x;
|
||
|
}
|
||
|
@end
|
||
|
|
||
8 years ago
|
@implementation NilParamA
|
||
10 years ago
|
|
||
9 years ago
|
- (void)test2 {
|
||
10 years ago
|
self->x = 1;
|
||
|
}
|
||
|
|
||
8 years ago
|
- (void)test1:(NilParamA*)other {
|
||
10 years ago
|
|
||
9 years ago
|
[other test2];
|
||
10 years ago
|
}
|
||
|
|
||
|
@end
|
||
|
|
||
8 years ago
|
int NilParamMain() {
|
||
10 years ago
|
|
||
8 years ago
|
NilParamA* a = [NilParamA alloc];
|
||
9 years ago
|
[a test1:nil];
|
||
|
[a release];
|
||
|
return 0;
|
||
10 years ago
|
}
|