summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/property/cxx-property-2.mm
blob: 4e085b3982493b9addb2026e7b60d86f5c19539c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */

/* All these C++ keywords are acceptable in ObjC method names, hence
   should be accepted for property getters and setters.  */

@interface Test
{
  Class isa;
}
@property (getter=namespace) int p0;
@property (setter=namespace:) int p1;
@property (getter=and) int p2;
@property (setter=and:) int p3;
@property (getter=class) int p4;
@property (setter=class:) int p5;
@property (getter=new) int p6;
@property (setter=new:) int p7;
@property (getter=delete) int p8;
@property (setter=delete:) int p9;
@property (getter=delete) int p10;
@property (setter=delete:) int p11;
@end