re PR objc/18862 (ICE on gcc-4.0-20041205/gcc/testsuite/objc.dg/selector-1.m)

2005-01-26  Alexander Malmberg  <alexander@malmberg.org>

        PR objc/18862
        * objc.dg/selector-2.m: New test.

From-SVN: r94286
This commit is contained in:
Alexander Malmberg 2005-01-26 21:03:31 +00:00 committed by Andrew Pinski
parent b0676216f7
commit 4bb3aa7e32
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -0,0 +1,16 @@
/* 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." } */