☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
SemaObjC
/
self-comparison.m
☽
☼
clang/test/SemaObjC/self-comparison.m
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2
3
@interface A {
4
id xxx;
5
}
6
-(int)bar;
7
@end
8
@implementation A
9
-(int)bar {
10
return xxx == xxx; // expected-warning {{self-comparison always evaluates to true}}
11
}
12
@end