Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
Remove warnings.
  • Loading branch information
soutaro committed Jun 30, 2016
1 parent 74f3b41 commit a70588b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions unittest/ExpressionNullabilityCalculatorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ TEST(ExpressionNullabilityCalculator, selector) {
"@end\n"
"@implementation Test\n"
"- (void)hello {\n"
" id testee = @selector(hello);"
" SEL testee = @selector(hello);"
"}\n"
"@end\n");

Expand All @@ -471,6 +471,7 @@ TEST(ExpressionNullabilityCalculator, new) {
"+ (instancetype)new;"
"@end\n"
"@implementation Test\n"
"+ (instancetype)new { return [[Test alloc] init]; }\n"
"- (void)hello {\n"
" id testee = [Test new];"
"}\n"
Expand Down Expand Up @@ -561,8 +562,8 @@ TEST(isPointerType, pointer_to_ObjcObject) {
"@end\n"
"@implementation Test\n"
"- (void)hello {\n"
" NSObject **x;\n"
" id testee = x;"
" NSObject * __autoreleasing *x;\n"
" NSObject * __autoreleasing *testee = x;"
"}\n"
"@end\n");

Expand Down

0 comments on commit a70588b

Please sign in to comment.