PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / obj-c++.dg / proto-lossage-2.mm
blobc1447ca85db2bbe3e3a87a5782e305bf1fb7ae70
1 /* Don't forget to look in protocols if a class (and its superclasses) do not
2    provide a suitable method.  */
3 /* { dg-do compile } */
5 #include "../objc-obj-c++-shared/TestsuiteObject.h"
6 #include <objc/objc.h>
8 @protocol Zot
9 -(void) zot;
10 @end
12 @interface Foo : TestsuiteObject <Zot>
13 @end
15 int foo()
17         Foo *f=nil;
18         [f zot]; /* There should be no warnings here! */
19         return 0;