Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjCXX / warn-strict-selector-match.mm
blob330b10b471b0b2ef292798e79e44d12414210c0f
1 // RUN: %clang_cc1  -Wstrict-selector-match -fsyntax-only -verify %s
3 @interface Base
4 - (id) meth1: (Base *)arg1;     // expected-note {{using}}
5 - (id) window;  // expected-note {{using}}
6 @end
8 @interface Derived: Base
9 - (id) meth1: (Derived *)arg1;  // expected-note {{also found}}
10 - (Base *) window;      // expected-note {{also found}}
11 @end
13 void foo(void) {
14   id r;
16   [r meth1:r];  // expected-warning {{multiple methods named 'meth1:' found}}
17   [r window];   // expected-warning {{multiple methods named 'window' found}}