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.
34 lines
634 B
34 lines
634 B
//
|
|
// Hello.m
|
|
// HelloWorldApp
|
|
//
|
|
// Created by Dulma Rodriguez on 20/05/2015.
|
|
// Copyright (c) 2015 Dulma Rodriguez. All rights reserved.
|
|
//
|
|
|
|
#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
|