[gcc/testsuite/ChangeLog] 2005-05-25 Ziemowit Laski <zlaski@apple.com> * obj-c++.dg/selector-1.mm: New. * obj-c++.dg/selector-2.mm: New. From-SVN: r100179
18 lines
337 B
Plaintext
18 lines
337 B
Plaintext
/* Test that we don't ICE when issuing a -Wselector warning. */
|
|
/* { dg-options "-Wselector" } */
|
|
/* { dg-do compile } */
|
|
|
|
#include <objc/Object.h>
|
|
|
|
@interface Foo
|
|
@end
|
|
@implementation Foo
|
|
-(void) foo
|
|
{
|
|
SEL a;
|
|
a = @selector(b1ar);
|
|
}
|
|
@end
|
|
/* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */
|
|
|