You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
232 B

// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
@interface A {
id xxx;
}
-(int)bar;
@end
@implementation A
-(int)bar {
return xxx == xxx; // expected-warning {{self-comparison always evaluates to true}}
}
@end