OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [proto-lossage-2.m] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* Don't forget to look in protocols if a class (and its superclasses) do not
2
   provide a suitable method.  */
3
/* { dg-do compile } */
4
 
5
#include "../objc-obj-c++-shared/Object1.h"
6
 
7
@protocol Zot
8
-(void) zot;
9
@end
10
 
11
@interface Foo : Object <Zot>
12
@end
13
 
14
int foo()
15
{
16
        Foo *f=nil;
17
        [f zot]; /* There should be no warnings here! */
18
        return 0;
19
}
20
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.