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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [class-extension-3.m] - Blame information for rev 754

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>, December 2010.  */
2
/* { dg-do compile } */
3
 
4
/* This test tests warnings on class extensions.  */
5
 
6
#include <objc/objc.h>
7
 
8
@interface MyObject
9
{
10
  Class isa;
11
  int count;
12
}
13
- (int) test;        /* { dg-message "previous declaration" } */
14
@property int count; /* { dg-message "originally specified here" } */
15
@end
16
 
17
@interface MyObject ()
18
- (void) test; /* { dg-error "duplicate declaration of method .-test." } */
19
@end
20
 
21
@interface MyObject ()
22
@end
23
 
24
@interface MyObject ()
25
@property int count; /* { dg-error "redeclaration of property .count." } */
26
@end

powered by: WebSVN 2.1.0

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