Douglas Gregor | 54f0161 | 2009-11-19 00:01:57 +0000 | [diff] [blame] | 1 | // Note: the run lines follow their respective tests, since line/column |
| 2 | // matter in this test. |
| 3 | |
| 4 | @interface Foo { |
| 5 | void *isa; |
| 6 | } |
| 7 | @property(copy) Foo *myprop; |
| 8 | @property(retain, nonatomic) id xx; |
Jordan Rose | d7403a7 | 2012-08-20 20:01:13 +0000 | [diff] [blame] | 9 | |
| 10 | // RUN: c-index-test -code-completion-at=%s:7:11 %s -fno-objc-arc | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | 54f0161 | 2009-11-19 00:01:57 +0000 | [diff] [blame] | 11 | // CHECK-CC1: {TypedText assign} |
Fariborz Jahanian | 27f4523 | 2011-06-11 17:14:27 +0000 | [diff] [blame] | 12 | // CHECK-CC1-NEXT: {TypedText atomic} |
Douglas Gregor | 54f0161 | 2009-11-19 00:01:57 +0000 | [diff] [blame] | 13 | // CHECK-CC1-NEXT: {TypedText copy} |
| 14 | // CHECK-CC1-NEXT: {TypedText getter}{Text = }{Placeholder method} |
| 15 | // CHECK-CC1-NEXT: {TypedText nonatomic} |
| 16 | // CHECK-CC1-NEXT: {TypedText readonly} |
| 17 | // CHECK-CC1-NEXT: {TypedText readwrite} |
| 18 | // CHECK-CC1-NEXT: {TypedText retain} |
| 19 | // CHECK-CC1-NEXT: {TypedText setter}{Text = }{Placeholder method} |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 20 | // CHECK-CC1-NEXT: {TypedText strong} |
| 21 | // CHECK-CC1-NEXT: {TypedText unsafe_unretained} |
Jordan Rose | d7403a7 | 2012-08-20 20:01:13 +0000 | [diff] [blame] | 22 | // CHECK-CC1-NOT: {TypedText weak} |
| 23 | |
Jordan Rose | d3867f6 | 2012-08-20 21:55:33 +0000 | [diff] [blame] | 24 | // RUN: c-index-test -code-completion-at=%s:7:11 %s -fobjc-arc -fobjc-runtime=macosx-10.7 | FileCheck -check-prefix=CHECK-CC1-ARC %s |
Jordan Rose | d7403a7 | 2012-08-20 20:01:13 +0000 | [diff] [blame] | 25 | // CHECK-CC1-ARC: {TypedText assign} |
| 26 | // CHECK-CC1-ARC-NEXT: {TypedText atomic} |
| 27 | // CHECK-CC1-ARC-NEXT: {TypedText copy} |
| 28 | // CHECK-CC1-ARC-NEXT: {TypedText getter}{Text = }{Placeholder method} |
| 29 | // CHECK-CC1-ARC-NEXT: {TypedText nonatomic} |
| 30 | // CHECK-CC1-ARC-NEXT: {TypedText readonly} |
| 31 | // CHECK-CC1-ARC-NEXT: {TypedText readwrite} |
| 32 | // CHECK-CC1-ARC-NEXT: {TypedText retain} |
| 33 | // CHECK-CC1-ARC-NEXT: {TypedText setter}{Text = }{Placeholder method} |
| 34 | // CHECK-CC1-ARC-NEXT: {TypedText strong} |
| 35 | // CHECK-CC1-ARC-NEXT: {TypedText unsafe_unretained} |
| 36 | // CHECK-CC1-ARC-NEXT: {TypedText weak} |
| 37 | |
Douglas Gregor | 54f0161 | 2009-11-19 00:01:57 +0000 | [diff] [blame] | 38 | // RUN: c-index-test -code-completion-at=%s:8:18 %s | FileCheck -check-prefix=CHECK-CC2 %s |
Douglas Gregor | 988358f | 2009-11-19 00:14:45 +0000 | [diff] [blame] | 39 | // CHECK-CC2: {TypedText getter}{Text = }{Placeholder method} |
Douglas Gregor | 54f0161 | 2009-11-19 00:01:57 +0000 | [diff] [blame] | 40 | // CHECK-CC2-NEXT: {TypedText nonatomic} |
Jordan Rose | d7403a7 | 2012-08-20 20:01:13 +0000 | [diff] [blame] | 41 | // CHECK-CC2-NEXT: {TypedText readonly} |
Douglas Gregor | 54f0161 | 2009-11-19 00:01:57 +0000 | [diff] [blame] | 42 | // CHECK-CC2-NEXT: {TypedText readwrite} |
| 43 | // CHECK-CC2-NEXT: {TypedText setter}{Text = }{Placeholder method} |
| 44 | @end |