llvm-project/clang/test/Analysis/unused-ivars.m

11 lines
197 B
Objective-C

// RUN: clang -analyze -warn-objc-unused-ivars %s -verify
@interface A
{
@private int x; // expected-warning {{Instance variable 'x' in class 'A' is never used}}
}
@end
@implementation A @end