parent
aef2b8198b
commit
f61cb42ab5
|
@ -412,7 +412,7 @@ DIAG(err_objc_protocol_required, ERROR,
|
|||
DIAG(err_objc_protocol_optional, ERROR,
|
||||
"@optional may be specified in protocols only")
|
||||
DIAG(err_missing_catch_finally, ERROR,
|
||||
"@try statment without a @catch and @finally clause")
|
||||
"@try statement without a @catch and @finally clause")
|
||||
DIAG(err_objc_concat_string, ERROR,
|
||||
"unexpected token after Objective-C string")
|
||||
DIAG(err_undef_superclass, ERROR,
|
||||
|
|
|
@ -34,7 +34,7 @@ void * foo()
|
|||
}
|
||||
}
|
||||
|
||||
@try { // expected-error {{@try statment without a @catch and @finally clause}}
|
||||
@try { // expected-error {{@try statement without a @catch and @finally clause}}
|
||||
return proc();
|
||||
}
|
||||
}
|
||||
|
@ -42,13 +42,13 @@ void * foo()
|
|||
|
||||
void bar()
|
||||
{
|
||||
@try {}// expected-error {{@try statment without a @catch and @finally clause}}
|
||||
@try {}// expected-error {{@try statement without a @catch and @finally clause}}
|
||||
@"s"; // expected-warning {{result unused}}
|
||||
}
|
||||
|
||||
void baz()
|
||||
{
|
||||
@try {}// expected-error {{@try statment without a @catch and @finally clause}}
|
||||
@try {}// expected-error {{@try statement without a @catch and @finally clause}}
|
||||
@try {}
|
||||
@finally {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue