summaryrefslogtreecommitdiffstats
path: root/test/CodeCompletion/property.m
blob: a8dd2ba2eb4d24fce38fea04bbeacd5b239709a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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: readonly
// CC1-NEXT: assign
// CC1-NEXT: readwrite
// CC1-NEXT: retain
// CC1-NEXT: copy
// CC1-NEXT: nonatomic
// CC1-NEXT: setter
// CC1-NEXT: getter
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:8:18 %s -o - | FileCheck -check-prefix=CC2 %s
// CC2: readonly
// CC2-NEXT: assign
// CC2-NEXT: readwrite
// CC2-NEXT: copy
// CC2-NEXT: nonatomic
// CC2-NEXT: setter
// CC2-NEXT: getter
@end