blob: 8feb5c9b6f20142ce1e47bdf89582986ecc08620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* 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;
@property int count; /* { dg-warning "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
|