selector-1.mm: Move to...

* obj-c++.dg/selector-1.mm: Move to...
        * obj-c++.dg/selector-4.mm: here...

From-SVN: r100180
This commit is contained in:
Mike Stump 2005-05-26 01:08:04 +00:00 committed by Mike Stump
parent d1c8c8273f
commit 047c276597
2 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-05-25 Mike Stump <mrs@apple.com>
* obj-c++.dg/selector-1.mm: Move to...
* obj-c++.dg/selector-4.mm: here...
2005-05-25 Ziemowit Laski <zlaski@apple.com> 2005-05-25 Ziemowit Laski <zlaski@apple.com>
* obj-c++.dg/selector-1.mm: New. * obj-c++.dg/selector-1.mm: New.

View File

@ -0,0 +1,26 @@
/* Test warning for non existing selectors. */
/* Contributed by Devang Patel <dpatel@apple.com>. */
/* { dg-options "-Wselector -fnext-runtime" } */
/* { dg-do compile } */
typedef struct objc_object { struct objc_class *class_pointer; } *id;
typedef struct objc_selector *SEL;
@interface Foo
- (void) foo;
- (void) bar;
@end
@implementation Foo
- (void) bar
{
}
- (void) foo
{
SEL a,b,c;
a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */
b = @selector(bar);
}
@end