URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [obj-c++.dg/] [selector-2.mm] - Rev 816
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test that we don't ICE when issuing a -Wselector warning. */
/* { dg-options "-Wselector" } */
/* { dg-do compile } */
#include "../objc-obj-c++-shared/Object1.h"
@interface Foo
@end
@implementation Foo
-(void) foo
{
SEL a;
a = @selector(b1ar);
}
@end
/* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */
Go to most recent revision | Compare with Previous | Blame | View Log