diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-07-04 13:58:54 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-07-04 13:58:54 +0000 |
| commit | 5362a71c02e7d448a8ce98cf00c47e353fba5d04 (patch) | |
| tree | 8ddfe382e1c6d590dc240e76f7cd45cea5c78e24 /test/Index/comments.c | |
| parent | 4ebdf5c4f587daef4e0be499802eac3a7a49bf2f (diff) | |
Diffstat (limited to 'test/Index/comments.c')
| -rw-r--r-- | test/Index/comments.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/Index/comments.c b/test/Index/comments.c new file mode 100644 index 000000000000..7ad8fd7e1f49 --- /dev/null +++ b/test/Index/comments.c @@ -0,0 +1,30 @@ +// 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" + + + + + + +//! It all starts here. +/*! It's a little odd to continue line this, + * + * but we need more multi-line comments. */ +/// This comment comes before my other comments +/** This is a block comment that is associated with the function f. It + * runs for three lines. + */ +void f(int, int); + +// NOT IN THE COMMENT +/// This is a BCPL comment that is associated with the function g. +/// It has only two lines. +/** 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 |
