repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
self-comparison.m
blob
00137ee0b572bb1e90a7e8e785aae675d6a19072
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