1 // A comment line.
2 
f(void * ptr)3 void f(void *ptr) {
4 }
5 
6 
7 // RUN: c-index-test -test-annotate-tokens=%s:1:1:5:1 %s | FileCheck %s
8 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-annotate-tokens=%s:1:1:5:1 %s | FileCheck %s
9 // CHECK: Comment: "// A comment line." [1:1 - 1:19]
10 // CHECK: Keyword: "void" [3:1 - 3:5] FunctionDecl=f:3:6 (Definition)
11 // CHECK: Identifier: "f" [3:6 - 3:7] FunctionDecl=f:3:6 (Definition)
12 // CHECK: Punctuation: "(" [3:7 - 3:8] FunctionDecl=f:3:6 (Definition)
13 // CHECK: Keyword: "void" [3:8 - 3:12] ParmDecl=ptr:3:14 (Definition)
14 // CHECK: Punctuation: "*" [3:13 - 3:14] ParmDecl=ptr:3:14 (Definition)
15 // CHECK: Identifier: "ptr" [3:14 - 3:17] ParmDecl=ptr:3:14 (Definition)
16 // CHECK: Punctuation: ")" [3:17 - 3:18] FunctionDecl=f:3:6 (Definition)
17 // CHECK: Punctuation: "{" [3:19 - 3:20] CompoundStmt=
18 // CHECK: Punctuation: "}" [4:1 - 4:2] CompoundStmt=
19 
20 
21