blob: 7fd3ad5957da75df3254acf9bf0c4b61a942226b [file] [log] [blame]
Argyrios Kyrtzidisc34a7ef2009-07-14 03:18:25 +00001// RUN: clang-cc -emit-pch %S/resolve-loc-input.c -o %t.ast &&
2// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:1:8 | grep top_var &&
3// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:3:15 | grep top_func_decl &&
4// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:3:25 | grep param1 &&
5// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:5:17 | grep top_func_def &&
6// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:5:23 | grep param2 &&
7// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:6:10 | grep local_var1 &&
8// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:7:15 | grep for_var &&
9// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:7:43 | grep top_func_def &&
10// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:7:43 | grep '++for_var' &&
11// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:8:9 | grep local_var2 &&
12// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:8:30 | grep local_var2 &&
13// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:8:30 | grep 'for_var + 1' &&
Argyrios Kyrtzidis12585542009-07-14 03:18:40 +000014
15// fields test.
16// RUN: index-test %t.ast -point-at %S/resolve-loc-input.c:13:10 | grep field_var