llvm-project/clang/test/FixIt/fixit-objc-missing-method-impl.m
David Goldman f558acf492 Reland "[clang][ObjC] Add fix it for missing methods in impl"
This reverts commit 37be74885946f18dbeb70343ad659924c61d2549/
relands https://reviews.llvm.org/D116417 now that the internal
issue has been fixed.
2022-01-06 10:55:02 -05:00

16 lines
428 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -pedantic -Werror -fixit -x objective-c %t
// RUN: %clang_cc1 -pedantic -Werror -x objective-c %t
__attribute__((objc_root_class))
@interface NSObject
@end
@interface Foo : NSObject
- (void)fooey; // expected-note{{method 'fooey' declared here}}
@end
@implementation Foo // expected-warning{{method definition for 'fooey' not found}}
@end