Argyrios Kyrtzidis | 6f155de | 2011-08-25 22:24:47 +0000 | [diff] [blame] | 1 | struct _MyS { |
| 2 | int foo; |
| 3 | } MyS; |
| 4 | |
| 5 | struct _MyS ww; |
| 6 | |
Argyrios Kyrtzidis | 135bf8e | 2012-06-09 03:03:02 +0000 | [diff] [blame^] | 7 | int x, y; |
| 8 | |
Argyrios Kyrtzidis | 6f155de | 2011-08-25 22:24:47 +0000 | [diff] [blame] | 9 | // RUN: c-index-test -cursor-at=%s:1:9 \ |
| 10 | // RUN: -cursor-at=%s:2:9 \ |
| 11 | // RUN: -cursor-at=%s:5:9 \ |
Argyrios Kyrtzidis | 135bf8e | 2012-06-09 03:03:02 +0000 | [diff] [blame^] | 12 | // RUN: -cursor-at=%s:7:5 \ |
| 13 | // RUN: -cursor-at=%s:7:8 \ |
Argyrios Kyrtzidis | 6f155de | 2011-08-25 22:24:47 +0000 | [diff] [blame] | 14 | // RUN: %s | FileCheck %s |
| 15 | |
| 16 | // CHECK: StructDecl=_MyS:1:8 (Definition) |
| 17 | // CHECK: FieldDecl=foo:2:7 (Definition) |
| 18 | // CHECK: TypeRef=struct _MyS:1:8 |
Argyrios Kyrtzidis | 135bf8e | 2012-06-09 03:03:02 +0000 | [diff] [blame^] | 19 | // CHECK: VarDecl=x:7:5 |
| 20 | // CHECK: VarDecl=y:7:8 |