From 4bb3aa7e32e8a5f7c5e4df51f23e2a163a89263f Mon Sep 17 00:00:00 2001 From: Alexander Malmberg Date: Wed, 26 Jan 2005 21:03:31 +0000 Subject: [PATCH] re PR objc/18862 (ICE on gcc-4.0-20041205/gcc/testsuite/objc.dg/selector-1.m) 2005-01-26 Alexander Malmberg PR objc/18862 * objc.dg/selector-2.m: New test. From-SVN: r94286 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/objc.dg/selector-2.m | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/objc.dg/selector-2.m diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 63f4aca8cc44..7cdaf99f1629 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-01-26 Alexander Malmberg + + PR objc/18862 + * objc.dg/selector-2.m: New test. + 2005-01-26 Jakub Jelinek * g++.dg/opt/range-test-2.C: New test. diff --git a/gcc/testsuite/objc.dg/selector-2.m b/gcc/testsuite/objc.dg/selector-2.m new file mode 100644 index 000000000000..5584f1511b6a --- /dev/null +++ b/gcc/testsuite/objc.dg/selector-2.m @@ -0,0 +1,16 @@ +/* Test that we don't ICE when issuing a -Wselector warning. */ +/* { dg-options "-Wselector -fgnu-runtime" } */ +/* { dg-do compile } */ + +#include + +@interface Foo +@end +@implementation Foo +-(void) foo +{ + SEL a; + a = @selector(b1ar); +} +@end /* { dg-warning "creating selector for nonexistent method .b1ar." } */ +