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] - Rev 704

Compare with Previous | Blame | View Log

/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
/* { dg-do compile } */
 
/* This test tests warnings on class extensions.  */
 
#include <objc/objc.h>
 
@interface MyObject
{
  Class isa;
  int count;
}
- (int) test;        /* { dg-message "previous declaration" } */
@property int count; /* { dg-message "originally specified here" } */
@end
 
@interface MyObject ()
- (void) test; /* { dg-error "duplicate declaration of method .-test." } */
@end
 
@interface MyObject ()
@end
 
@interface MyObject ()
@property int count; /* { dg-error "redeclaration of property .count." } */
@end
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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