forked from OSchip/llvm-project
[libclang] Add a test I forgot to commit for r156890.
llvm-svn: 157491
This commit is contained in:
parent
48e894bdc9
commit
e99b084cd7
|
@ -0,0 +1,18 @@
|
|||
|
||||
@class Protocol;
|
||||
|
||||
@protocol Prot
|
||||
@end
|
||||
|
||||
struct FooS {
|
||||
int x;
|
||||
};
|
||||
|
||||
void foo() {
|
||||
Protocol *p = @protocol(Prot);
|
||||
@encode(struct FooS);
|
||||
}
|
||||
|
||||
// RUN: c-index-test -index-file %s | FileCheck %s
|
||||
// CHECK: [indexEntityReference]: kind: objc-protocol | name: Prot | {{.*}} | loc: 12:27
|
||||
// CHECK: [indexEntityReference]: kind: struct | name: FooS | {{.*}} | loc: 13:18
|
Loading…
Reference in New Issue