diff options
Diffstat (limited to 'test/Index/comments.c')
-rw-r--r-- | test/Index/comments.c | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/test/Index/comments.c b/test/Index/comments.c index 7ad8fd7e1f495..689ce88e22138 100644 --- a/test/Index/comments.c +++ b/test/Index/comments.c @@ -1,15 +1,4 @@ -// RUN: clang-cc -emit-pch -o %t.ast %s && -// RUN: index-test %t.ast -point-at %s:22:6 | grep "starts here" && -// RUN: index-test %t.ast -point-at %s:22:6 | grep "block comment" && -// RUN: index-test %t.ast -point-at %s:28:6 | grep "BCPL" && -// RUN: index-test %t.ast -point-at %s:28:6 | grep "But" && -// RUN: index-test %t.ast -point-at %s:28:6 | grep "NOT" | count 0 && -// RUN: index-test %t.ast -point-at %s:30:6 | grep "member" - - - - - +// Run lines are sensitive to line numbers and come below the code. //! It all starts here. /*! It's a little odd to continue line this, @@ -27,4 +16,19 @@ void f(int, int); /** But there are other blocks that are part of the comment, too. */ void g(int); -void h(int); ///< This is a member comment.
\ No newline at end of file +void h(int); ///< This is a member comment. + + +// RUN: clang-cc -emit-pch -o %t.ast %s && + +// RUN: index-test %t.ast -point-at %s:11:6 > %t && +// RUN: grep "starts here" %t && +// RUN: grep "block comment" %t && + +// RUN: index-test %t.ast -point-at %s:17:6 > %t && +// RUN: grep "BCPL" %t && +// RUN: grep "But" %t && + +// RUN: index-test %t.ast -point-at %s:19:6 > %t && +// RUN: grep "NOT" %t | count 0 && +// RUN: grep "member" %t |