blob: 1681a3b103d1d2ae97a1b8015e9f348e2144c737 [file] [log] [blame]
/* APPLE LOCAL file radar 4968128 */
/* Test that user specified setter declaration is generated correctly.
No error/warning must be issued in this test case. */
/* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fobjc-new-property" { target arm*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
__attribute__((objc_root_class)) @interface PSEntry
@property (getter=isRead, setter=setRead:) int read;
@end
int foo (PSEntry *entry)
{
entry.read = 1 + entry.read;
}