selector-2.mm 356 Bytes
Newer Older
Ziemowit Laski committed
1 2 3 4
/* Test that we don't ICE when issuing a -Wselector warning.  */
/* { dg-options "-Wselector" } */
/* { dg-do compile } */

5
#include "../objc-obj-c++-shared/Object1.h"
Ziemowit Laski committed
6 7 8 9 10 11 12 13 14 15 16 17

@interface Foo
@end
@implementation Foo
-(void) foo
{
  SEL a;
  a = @selector(b1ar);
}
@end
/* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */