brintos

brintos / llvm-project-archived public Read only

0
0
Text · 534 B · abdf9f2 Raw
23 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -Wsemicolon-before-method-body -verify %s2// RUN: %clang_cc1 -fsyntax-only -Wsemicolon-before-method-body -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s3 4// Allow optional semicolon in objc method definition after method prototype,5// warn about it and suggest a fixit.6 7@interface NSObject8@end9 10@interface C : NSObject11- (int)z;12@end13 14@implementation C15- (int)z; // expected-warning {{semicolon before method body is ignored}}16{17  return 0;18}19@end20 21// CHECK: fix-it:"{{.*}}":{15:9-15:10}:""22 23