// RUN: %clang_cc1 -Wsemicolon-before-method-body %s -verify -fsyntax-only
#definenil0/* id of Nil instance */@interfaceNSObject@end@interfaceNSString:NSObject@end@interfaceNSMutableString:NSString@end@interfaceNSSimpleCString:NSString{@protectedchar*bytes;int numBytes;}@end@interfaceNSConstantString:NSSimpleCString@end@interfaceSubclass:NSObject- (NSString*)token;@end@implementationSubclass- (NSString*)token;// expected-warning {{semicolon before method body is ignored}}
{NSMutableString*result =nil;return(result !=nil)? result :@"";}@end