diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-14 18:03:49 +0000 |
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-14 18:03:49 +0000 |
| commit | 4c8b24812ddcd1dedaca343a6d4e76f91f398981 (patch) | |
| tree | 137ebebcae16fb0ce7ab4af456992bbd8d22fced /test/CodeCompletion/property.m | |
| parent | 5362a71c02e7d448a8ce98cf00c47e353fba5d04 (diff) | |
Notes
Diffstat (limited to 'test/CodeCompletion/property.m')
| -rw-r--r-- | test/CodeCompletion/property.m | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/CodeCompletion/property.m b/test/CodeCompletion/property.m new file mode 100644 index 000000000000..7f2321ee1395 --- /dev/null +++ b/test/CodeCompletion/property.m @@ -0,0 +1,29 @@ +// Note: the run lines follow their respective tests, since line/column +// matter in this test. + +@interface Foo { + void *isa; +} +@property(copy) Foo *myprop; +@property(retain, nonatomic) id xx; +// RUN: clang-cc -fsyntax-only -code-completion-at=%s:7:11 %s -o - | FileCheck -check-prefix=CC1 %s && +// CC1: assign +// CC1-NEXT: copy +// CC1-NEXT: getter +// CC1-NEXT: nonatomic +// CC1-NEXT: readonly +// CC1-NEXT: readwrite +// CC1-NEXT: retain +// CC1-NEXT: setter +// RUN: clang-cc -fsyntax-only -code-completion-at=%s:8:18 %s -o - | FileCheck -check-prefix=CC2 %s +// CC2: assign +// CC2-NEXT: copy +// CC2-NEXT: getter +// CC2-NEXT: nonatomic +// CC2-NEXT: readonly +// CC2-NEXT: readwrite +// CC2-NEXT: setter +@end + + + |
