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