URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Test warning for non-existent selectors. */
|
/* Test warning for non-existent selectors. */
|
/* This is the "-fgnu-runtime" variant of objc.dg/selector-1.m. */
|
/* This is the "-fgnu-runtime" variant of objc.dg/selector-1.m. */
|
/* { dg-options "-Wselector -fgnu-runtime" } */
|
/* { dg-options "-Wselector -fgnu-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 const struct objc_selector *SEL;
|
typedef const 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);
|
a = @selector(b1ar);
|
b = @selector(bar);
|
b = @selector(bar);
|
}
|
}
|
@end /* { dg-warning "creating selector for nonexistent method .b1ar." } */
|
@end /* { dg-warning "creating selector for nonexistent method .b1ar." } */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.