OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [selector-2.m] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test that we don't ICE when issuing a -Wselector warning.  */
2
/* { dg-options "-Wselector" } */
3
/* { dg-do compile } */
4
 
5
#include <objc/Object.h>
6
 
7
@interface Foo
8
@end
9
@implementation Foo
10
-(void) foo
11
{
12
  SEL a;
13
  a = @selector(b1ar);
14
}
15
@end
16
/* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.