2010-11-11 Jakub Jelinek <jakub@redhat.com>
[official-gcc.git] / gcc / testsuite / objc.dg / proto-lossage-2.m
blob361bb9087e6866f28362a75661e8720990b88b10
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/Object1.h"
7 @protocol Zot
8 -(void) zot;
9 @end
11 @interface Foo : Object <Zot>
12 @end
14 int foo()
16         Foo *f=nil;
17         [f zot]; /* There should be no warnings here! */
18         return 0;