llvm-for-llvmta/tools/clang/test/SemaObjC/self-comparison.m
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

13 lines
232 B
Objective-C

// 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