1 // RUN: %clang_cc1 -Wsemicolon-before-method-body %s -verify -fsyntax-only
3 #define nil 0 /* id of Nil instance */
8 @interface NSString : NSObject
12 @interface NSMutableString : NSString
16 @interface NSSimpleCString : NSString {
23 @interface NSConstantString : NSSimpleCString
27 @interface Subclass : NSObject
31 @implementation Subclass
32 - (NSString *)token; // expected-warning {{semicolon before method body is ignored}}
34 NSMutableString *result = nil;
36 return (result != nil) ? result : @"";