1 // RUN: %clang_cc1 -fsyntax-only -Wsemicolon-before-method-body -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -Wsemicolon-before-method-body -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
4 // Allow optional semicolon in objc method definition after method prototype,
5 // warn about it and suggest a fixit.
10 @interface C : NSObject
15 - (int)z; // expected-warning {{semicolon before method body is ignored}}
21 // CHECK: fix-it:"{{.*}}":{15:9-15:10}:""