mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 21:34:55 +08:00
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:
parent
b0676216f7
commit
4bb3aa7e32
@ -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.
|
||||
|
16
gcc/testsuite/objc.dg/selector-2.m
Normal file
16
gcc/testsuite/objc.dg/selector-2.m
Normal 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." } */
|
||||
|
Loading…
Reference in New Issue
Block a user