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:
parent
d1c8c8273f
commit
047c276597
@ -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.
|
||||||
|
26
gcc/testsuite/obj-c++.dg/selector-4.mm
Normal file
26
gcc/testsuite/obj-c++.dg/selector-4.mm
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user