Douglas Gregor | 2e22253 | 2009-07-02 17:08:52 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -emit-pch -o %t.ast %s && |
| 2 | // RUN: index-test %t.ast -point-at %s:22:6 | grep "starts here" && |
| 3 | // RUN: index-test %t.ast -point-at %s:22:6 | grep "block comment" && |
| 4 | // RUN: index-test %t.ast -point-at %s:28:6 | grep "BCPL" && |
| 5 | // RUN: index-test %t.ast -point-at %s:28:6 | grep "But" && |
| 6 | // RUN: index-test %t.ast -point-at %s:28:6 | grep "NOT" | count 0 && |
| 7 | // RUN: index-test %t.ast -point-at %s:30:6 | grep "member" |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | //! It all starts here. |
| 15 | /*! It's a little odd to continue line this, |
| 16 | * |
| 17 | * but we need more multi-line comments. */ |
| 18 | /// This comment comes before my other comments |
| 19 | /** This is a block comment that is associated with the function f. It |
| 20 | * runs for three lines. |
| 21 | */ |
| 22 | void f(int, int); |
| 23 | |
| 24 | // NOT IN THE COMMENT |
| 25 | /// This is a BCPL comment that is associated with the function g. |
| 26 | /// It has only two lines. |
| 27 | /** But there are other blocks that are part of the comment, too. */ |
| 28 | void g(int); |
| 29 | |
| 30 | void h(int); ///< This is a member comment. |