blob: 7ad8fd7e1f49543199ca2c3850a93ae7eb975163 [file] [log] [blame]
Douglas Gregor2e222532009-07-02 17:08:52 +00001// 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 */
22void 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. */
28void g(int);
29
30void h(int); ///< This is a member comment.