Fariborz Jahanian | a6e2779 | 2009-03-06 23:05:56 +0000 | [diff] [blame^] | 1 | // RUN: clang -fnext-runtime -fobjc-gc -emit-llvm -o %t %s |
2 | |||||
3 | @interface PBXTarget | ||||
4 | { | ||||
5 | |||||
6 | PBXTarget * __weak _lastKnownTarget; | ||||
7 | PBXTarget * __weak _KnownTarget; | ||||
8 | PBXTarget * result; | ||||
9 | } | ||||
10 | - Meth; | ||||
11 | @end | ||||
12 | |||||
13 | @implementation PBXTarget | ||||
14 | - Meth { | ||||
15 | if (_lastKnownTarget != result) | ||||
16 | foo(); | ||||
17 | if (result != _lastKnownTarget) | ||||
18 | foo(); | ||||
19 | |||||
20 | if (_lastKnownTarget != _KnownTarget) | ||||
21 | foo(); | ||||
22 | } | ||||
23 | |||||
24 | @end |