1 // RUN: %clang_cc1 -emit-llvm -o %t %s
7 @interface SomeClass : Object
11 @property int myValue;
14 @implementation SomeClass
15 @synthesize myValue=_myValue;
21 SomeClass *o = [SomeClass new];
23 val = o.myValue++; /* val -1, o.myValue 0 */
24 val += o.myValue--; /* val -1. o.myValue -1 */
25 val += ++o.myValue; /* val -1, o.myValue 0 */
26 val += --o.myValue; /* val -2, o.myValue -1 */
27 return ++o.myValue + (val+2);