2010-04-06 23:09:27 +08:00
|
|
|
// Note: the run lines follow their respective tests, since line/column
|
|
|
|
// matter in this test.
|
|
|
|
|
|
|
|
int f(int);
|
|
|
|
|
|
|
|
int test(int i, int j, int k, int l) {
|
|
|
|
return i | j | k & l;
|
|
|
|
}
|
|
|
|
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:7:9 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
|
2010-05-27 06:00:08 +08:00
|
|
|
// CHECK-CC1: macro definition:{TypedText __VERSION__} (70)
|
|
|
|
// CHECK-CC1: FunctionDecl:{ResultType int}{TypedText f}{LeftParen (}{Placeholder int}{RightParen )} (50)
|
|
|
|
// CHECK-CC1: NotImplemented:{TypedText float} (40)
|
|
|
|
// CHECK-CC1: ParmDecl:{ResultType int}{TypedText j} (8)
|
|
|
|
// CHECK-CC1: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )} (30)
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:7:14 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
|
|
|
|
// RUN: c-index-test -code-completion-at=%s:7:18 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
|
|
|
|
// RUN: c-index-test -code-completion-at=%s:7:22 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
|