blob: 65af2419213ab26be15e76b6dbaf1e1263ae74ff [file] [log] [blame]
Douglas Gregor64538cf2010-04-06 15:09:27 +00001// Note: the run lines follow their respective tests, since line/column
2// matter in this test.
3
4int f(int);
5
6int test(int i, int j, int k, int l) {
7 return i | j | k & l;
8}
9
Douglas Gregord8e8a582010-05-25 21:41:55 +000010// RUN: c-index-test -code-completion-at=%s:7:9 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
Douglas Gregor12e13132010-05-26 22:00:08 +000011// CHECK-CC1: macro definition:{TypedText __VERSION__} (70)
12// CHECK-CC1: FunctionDecl:{ResultType int}{TypedText f}{LeftParen (}{Placeholder int}{RightParen )} (50)
13// CHECK-CC1: NotImplemented:{TypedText float} (40)
14// CHECK-CC1: ParmDecl:{ResultType int}{TypedText j} (8)
15// CHECK-CC1: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )} (30)
Douglas Gregord8e8a582010-05-25 21:41:55 +000016// RUN: c-index-test -code-completion-at=%s:7:14 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
17// RUN: c-index-test -code-completion-at=%s:7:18 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
18// RUN: c-index-test -code-completion-at=%s:7:22 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s