URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 309 |
Rev 384 |
/* Test that we don't ICE when issuing a -Wselector warning. */
|
/* Test that we don't ICE when issuing a -Wselector warning. */
|
/* { dg-options "-Wselector" } */
|
/* { dg-options "-Wselector" } */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
#include "../objc-obj-c++-shared/Object1.h"
|
#include "../objc-obj-c++-shared/Object1.h"
|
|
|
@interface Foo
|
@interface Foo
|
@end
|
@end
|
@implementation Foo
|
@implementation Foo
|
-(void) foo
|
-(void) foo
|
{
|
{
|
SEL a;
|
SEL a;
|
a = @selector(b1ar);
|
a = @selector(b1ar);
|
}
|
}
|
@end
|
@end
|
/* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */
|
/* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.