* obj-c++.dg/selector-4.mm: here...
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100180
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* obj-c++.dg/selector-1.mm: New.
--- /dev/null
+/* 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
+