parent
bfc70b050b
commit
68d2190226
|
@ -1253,7 +1253,9 @@ Parser::StmtResult Parser::ParseObjCTryStmt(SourceLocation atLoc) {
|
|||
}
|
||||
StmtResult CatchStmts;
|
||||
StmtResult FinallyStmt;
|
||||
EnterScope(Scope::DeclScope);
|
||||
StmtResult TryBody = ParseCompoundStatementBody();
|
||||
ExitScope();
|
||||
if (TryBody.isInvalid)
|
||||
TryBody = Actions.ActOnNullStmt(Tok.getLocation());
|
||||
|
||||
|
|
|
@ -9,3 +9,19 @@ void f0() {
|
|||
int i = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void f1() {
|
||||
int i;
|
||||
@try {
|
||||
int i =0;
|
||||
} @finally {
|
||||
}
|
||||
}
|
||||
|
||||
void f2() {
|
||||
int i;
|
||||
@try {
|
||||
} @catch(id e) {
|
||||
int i = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue