1// Note: the run lines follow their respective tests, since line/column 2// matter in this test. 3 4@interface Base 5@end 6 7@interface Test : Base 8/// Instance! 9@property id instanceProp; 10/// Class! 11@property (class) id classProp; 12@end 13 14void test(Test *obj) { 15 [obj instanceProp]; 16 [Test classProp]; 17} 18 19// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:15:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s 20// CHECK-CC1: instanceProp : [#id#]instanceProp : Instance! 21// CHECK-CC1: setInstanceProp: : [#void#]setInstanceProp:<#(id)#> : Instance! 22 23// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:16:9 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s 24// CHECK-CC2: classProp : [#id#]classProp : Class! 25// CHECK-CC2: setClassProp: : [#void#]setClassProp:<#(id)#> : Class! 26