URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Test warning for non existing selectors. */
|
/* Test warning for non existing selectors. */
|
/* Contributed by Devang Patel . */
|
/* Contributed by Devang Patel . */
|
|
|
/* { dg-options "-Wselector -fnext-runtime" } */
|
/* { dg-options "-Wselector -fnext-runtime" } */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
typedef struct objc_object { struct objc_class *class_pointer; } *id;
|
typedef struct objc_object { struct objc_class *class_pointer; } *id;
|
typedef struct objc_selector *SEL;
|
typedef struct objc_selector *SEL;
|
|
|
@interface Foo
|
@interface Foo
|
- (void) foo;
|
- (void) foo;
|
- (void) bar;
|
- (void) bar;
|
@end
|
@end
|
|
|
@implementation Foo
|
@implementation Foo
|
- (void) bar
|
- (void) bar
|
{
|
{
|
}
|
}
|
|
|
- (void) foo
|
- (void) foo
|
{
|
{
|
SEL a,b,c;
|
SEL a,b,c;
|
a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */
|
a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */
|
b = @selector(bar);
|
b = @selector(bar);
|
}
|
}
|
@end
|
@end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.