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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [gcc/] [testsuite/] [obj-c++.dg/] [proto-lossage-2.mm] - Diff between revs 308 and 519

Only display areas with differences | Details | Blame | View Log

Rev 308 Rev 519
/* Don't forget to look in protocols if a class (and its superclasses) do not
/* Don't forget to look in protocols if a class (and its superclasses) do not
   provide a suitable method.  */
   provide a suitable method.  */
/* { dg-do compile } */
/* { dg-do compile } */
#include "../objc-obj-c++-shared/Object1.h"
#include "../objc-obj-c++-shared/Object1.h"
@protocol Zot
@protocol Zot
-(void) zot;
-(void) zot;
@end
@end
@interface Foo : Object 
@interface Foo : Object 
@end
@end
int foo()
int foo()
{
{
        Foo *f=nil;
        Foo *f=nil;
        [f zot]; /* There should be no warnings here! */
        [f zot]; /* There should be no warnings here! */
        return 0;
        return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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