Douglas Gregor | 64538cf | 2010-04-06 15:09:27 +0000 | [diff] [blame] | 1 | // Note: the run lines follow their respective tests, since line/column |
| 2 | // matter in this test. |
| 3 | |
| 4 | int f(int); |
| 5 | |
| 6 | int test(int i, int j, int k, int l) { |
| 7 | return i | j | k & l; |
| 8 | } |
| 9 | |
Douglas Gregor | d8e8a58 | 2010-05-25 21:41:55 +0000 | [diff] [blame] | 10 | // RUN: c-index-test -code-completion-at=%s:7:9 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | 12e1313 | 2010-05-26 22:00:08 +0000 | [diff] [blame] | 11 | // CHECK-CC1: macro definition:{TypedText __VERSION__} (70) |
| 12 | // CHECK-CC1: FunctionDecl:{ResultType int}{TypedText f}{LeftParen (}{Placeholder int}{RightParen )} (50) |
Douglas Gregor | 4710e5b | 2010-05-28 00:49:12 +0000 | [diff] [blame^] | 13 | // CHECK-CC1-NOT: NotImplemented:{TypedText float} (40) |
Douglas Gregor | 12e1313 | 2010-05-26 22:00:08 +0000 | [diff] [blame] | 14 | // CHECK-CC1: ParmDecl:{ResultType int}{TypedText j} (8) |
| 15 | // CHECK-CC1: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )} (30) |
Douglas Gregor | d8e8a58 | 2010-05-25 21:41:55 +0000 | [diff] [blame] | 16 | // 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 |
Douglas Gregor | 4710e5b | 2010-05-28 00:49:12 +0000 | [diff] [blame^] | 19 | // RUN: c-index-test -code-completion-at=%s:7:2 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC2 %s |
| 20 | // CHECK-CC2: macro definition:{TypedText __VERSION__} (70) |
| 21 | // CHECK-CC2: FunctionDecl:{ResultType int}{TypedText f}{LeftParen (}{Placeholder int}{RightParen )} (50) |
| 22 | // CHECK-CC2: NotImplemented:{TypedText float} (40) |
| 23 | // CHECK-CC2: ParmDecl:{ResultType int}{TypedText j} (8) |
| 24 | // CHECK-CC2: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )} (30) |