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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [proto-lossage-2.m] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 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/TestsuiteObject.h"
6
#include <objc/objc.h>
7
 
8
@protocol Zot
9
-(void) zot;
10
@end
11
 
12
@interface Foo : TestsuiteObject <Zot>
13
@end
14
 
15
int foo()
16
{
17
        Foo *f=nil;
18
        [f zot]; /* There should be no warnings here! */
19
        return 0;
20
}
21
 

powered by: WebSVN 2.1.0

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