clang-1/test/Analysis/unused-ivars.m

11 строки
200 B
Objective-C

// RUN: clang-cc -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