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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
warn-selector-selection.m
blob
e395f43464ed357a63e5b0c4051fc63eb8d86f5b
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
@interface Object
4
- (void)foo;
5
@end
6
7
@interface Class1
8
- (void)setWindow:(Object *)wdw;
9
@end
10
11
void foo(void) {
12
Object *obj;
13
[obj setWindow:0]; // expected-warning{{'Object' may not respond to 'setWindow:'}}
14
}