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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [selector-warn-1.m] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, January 2011.  */
2
/* { dg-options "-Wselector" } */
3
/* { dg-do compile } */
4
 
5
#include <objc/objc.h>
6
 
7
@interface RootObject
8
@end
9
 
10
@interface MyObject : RootObject
11
- (void) method; /* { dg-message "found" } */
12
@end
13
 
14
@interface MyObject2  : RootObject
15
- (int) method; /* { dg-message "also found" } */
16
@end /* { dg-warning "multiple selectors named .-method. found" } */

powered by: WebSVN 2.1.0

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