diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-16 01:12:04 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-16 01:12:04 +0000 |
commit | 3454d444dc90938e18dfc99a3eea8a8545f34b51 (patch) | |
tree | 29d42c97c5fe3f2e1d0b81bacd74091351cc9315 /clang/test | |
parent | 7346277b6bcf71652e32bc8a4c8e580916329e60 (diff) | |
download | bcm5719-llvm-3454d444dc90938e18dfc99a3eea8a8545f34b51.tar.gz bcm5719-llvm-3454d444dc90938e18dfc99a3eea8a8545f34b51.zip |
[libclang] Do index statements inside a type source info. rdar://10872758
llvm-svn: 150647
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Index/index-refs.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Index/index-refs.cpp b/clang/test/Index/index-refs.cpp index 35f4fe403c0..fa4b4b3a09c 100644 --- a/clang/test/Index/index-refs.cpp +++ b/clang/test/Index/index-refs.cpp @@ -55,6 +55,12 @@ void foo3() { TS<int, int> s; } +const int array_size = 3; +typedef int some_arr[array_size]; + +const int default_param = 3; +void foo4(int p = default_param); + // RUN: c-index-test -index-file %s | FileCheck %s // CHECK: [indexDeclaration]: kind: namespace | name: NS // CHECK-NEXT: [indexDeclaration]: kind: variable | name: gx @@ -98,3 +104,6 @@ void foo3() { [indexEntityReference]: kind: struct-template-spec | name: TS | USR: c:@S@TS>#I | {{.*}} | loc: 55:3 */ // CHECK-NEXT: [indexEntityReference]: kind: c++-class-template | name: TS | USR: c:@ST>2#T#T@TS | {{.*}} | loc: 55:3 + +// CHECK: [indexEntityReference]: kind: variable | name: array_size | {{.*}} | loc: 59:22 +// CHECK: [indexEntityReference]: kind: variable | name: default_param | {{.*}} | loc: 62:19 |