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.
31 lines
524 B
31 lines
524 B
10 years ago
|
//
|
||
|
// Hello.m
|
||
|
// HelloWorldApp
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import "Hello.h"
|
||
|
|
||
|
@implementation Hello
|
||
|
|
||
|
-(Hello*) return_hello {
|
||
|
return [Hello new];
|
||
|
}
|
||
|
|
||
|
-(NSString*) null_dereference_bug {
|
||
|
Hello *hello = nil;
|
||
|
return hello->_s;
|
||
|
}
|
||
|
|
||
|
-(NSString*) ivar_not_nullable_bug:(Hello*) hello {
|
||
|
Hello* ret_hello = [hello->_hello return_hello];
|
||
|
return ret_hello->_s;
|
||
|
}
|
||
|
|
||
|
-(NSString*) parameter_not_null_checked_bug:(Hello*) hello {
|
||
|
Hello *ret_hello = [hello return_hello];
|
||
|
return ret_hello->_s;
|
||
|
}
|
||
|
|
||
|
@end
|