diff options
Diffstat (limited to 'clang/test/Index/resolve-loc.c')
| -rw-r--r-- | clang/test/Index/resolve-loc.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/clang/test/Index/resolve-loc.c b/clang/test/Index/resolve-loc.c index fc969e997b2..a27fca7a866 100644 --- a/clang/test/Index/resolve-loc.c +++ b/clang/test/Index/resolve-loc.c @@ -1,3 +1,5 @@ +// Run lines are sensitive to line numbers and come below the code. + int top_var; void top_func_decl(int param1); @@ -15,18 +17,18 @@ struct S { // RUN: clang-cc -emit-pch %s -o %t.ast && -// RUN: index-test %t.ast -point-at %s:1:8 | grep top_var && -// RUN: index-test %t.ast -point-at %s:3:15 | grep top_func_decl && -// RUN: index-test %t.ast -point-at %s:3:25 | grep param1 && -// RUN: index-test %t.ast -point-at %s:5:17 | grep top_func_def && -// RUN: index-test %t.ast -point-at %s:5:23 | grep param2 && -// RUN: index-test %t.ast -point-at %s:6:10 | grep local_var1 && -// RUN: index-test %t.ast -point-at %s:7:15 | grep for_var && -// RUN: index-test %t.ast -point-at %s:7:43 | grep top_func_def && -// RUN: index-test %t.ast -point-at %s:7:43 | grep '++for_var' && -// RUN: index-test %t.ast -point-at %s:8:9 | grep local_var2 && -// RUN: index-test %t.ast -point-at %s:8:30 | grep local_var2 && -// RUN: index-test %t.ast -point-at %s:8:30 | grep 'for_var + 1' && +// RUN: index-test %t.ast -point-at %s:3:8 | grep top_var && +// RUN: index-test %t.ast -point-at %s:5:15 | grep top_func_decl && +// RUN: index-test %t.ast -point-at %s:5:25 | grep param1 && +// RUN: index-test %t.ast -point-at %s:7:17 | grep top_func_def && +// RUN: index-test %t.ast -point-at %s:7:23 | grep param2 && +// RUN: index-test %t.ast -point-at %s:8:10 | grep local_var1 && +// RUN: index-test %t.ast -point-at %s:9:15 | grep for_var && +// RUN: index-test %t.ast -point-at %s:9:43 | grep top_func_def && +// RUN: index-test %t.ast -point-at %s:9:43 | grep '++for_var' && +// RUN: index-test %t.ast -point-at %s:10:9 | grep local_var2 && +// RUN: index-test %t.ast -point-at %s:10:30 | grep local_var2 && +// RUN: index-test %t.ast -point-at %s:10:30 | grep 'for_var + 1' && // fields test. -// RUN: index-test %t.ast -point-at %s:13:10 | grep field_var +// RUN: index-test %t.ast -point-at %s:15:10 | grep field_var |

