Mercurial > hg > CbC > CbC_llvm
comparison clang/test/SemaObjC/warn-selector-selection.m @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
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 } |