Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
66ad201eb59147fb47816ce961430f05b28203b2
/
.
/
test
/
SemaObjC
/
warn-selector-selection.m
blob: 4ab89b7e1e2cafd5f52f0ffea83f181ab53828d4 [
file
] [
log
] [
blame
]
// RUN: clang-cc -fsyntax-only -verify %s
@interface
Object
-
(
void
)
foo
;
@end
@interface
Class1
-
(
void
)
setWindow
:(
Object
*)
wdw
;
@end
void
foo
(
void
)
{
Object
*
obj
;
[
obj setWindow
:
0
];
// expected-warning{{Object may not respond to 'setWindow:'}}
}