OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [selector-3.m] - Blame information for rev 309

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* Test warning for non-existent selectors.  */
2
/* This is the "-fgnu-runtime" variant of objc.dg/selector-1.m.  */
3
/* { dg-options "-Wselector" } */
4
/* { dg-do compile } */
5
/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
6
 
7
typedef struct objc_object { struct objc_class *class_pointer; } *id;
8
typedef const struct objc_selector    *SEL;
9
 
10
@interface Foo
11
- (void) foo;
12
- (void) bar;
13
@end
14
 
15
@implementation Foo
16
- (void) bar
17
{
18
}
19
 
20
- (void) foo
21
{
22
  SEL a,b,c;
23
  a = @selector(b1ar);
24
  b = @selector(bar);
25
}
26
@end /* { dg-warning "creating selector for nonexistent method .b1ar." } */
27
 

powered by: WebSVN 2.1.0

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