PR objc/18862
* objc.dg/selector-2.m: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94286
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-01-26 Alexander Malmberg <alexander@malmberg.org>
+
+ PR objc/18862
+ * objc.dg/selector-2.m: New test.
+
2005-01-26 Jakub Jelinek <jakub@redhat.com>
* g++.dg/opt/range-test-2.C: New test.
--- /dev/null
+/* Test that we don't ICE when issuing a -Wselector warning. */
+/* { dg-options "-Wselector -fgnu-runtime" } */
+/* { 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." } */
+