1 /* This program tests use of property provided setter/getter functions. */
2 /* { dg-options "-std=c99" } */
4 /* { dg-additional-sources "../../objc-obj-c++-shared/Object1.m" } */
5 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
7 #import "../../objc-obj-c++-shared/Object1.h"
9 @interface Bar : Object
13 @property (setter=MySetter:) int FooBar;
17 @synthesize FooBar=iVar;
19 - (void) MySetter : (int) value { iVar = value; }
23 int main(int argc, char *argv[]) {