Douglas Gregor | 2ccccb3 | 2010-08-23 18:23:48 +0000 | [diff] [blame] | 1 | // This test is line- and column-sensitive, so test commands are at the bottom. |
| 2 | namespace N { |
| 3 | struct X { |
| 4 | int f(X); |
| 5 | }; |
| 6 | } |
| 7 | |
| 8 | int g(int a); |
| 9 | |
| 10 | struct Y { }; |
| 11 | |
| 12 | struct Z { |
| 13 | int member; |
| 14 | friend int N::X::f(N::X); |
| 15 | }; |
| 16 | |
| 17 | // RUN: c-index-test -code-completion-at=%s:8:5 %s | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | 52779fb | 2010-09-23 23:01:17 +0000 | [diff] [blame] | 18 | // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:8:5 %s | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | 8ec904c | 2010-10-19 00:03:23 +0000 | [diff] [blame] | 19 | // CHECK-CC1: NotImplemented:{TypedText const} (40) |
Douglas Gregor | e8d7beb | 2010-09-03 23:30:36 +0000 | [diff] [blame] | 20 | // CHECK-CC1: Namespace:{TypedText N}{Text ::} (75) |
Douglas Gregor | 8ec904c | 2010-10-19 00:03:23 +0000 | [diff] [blame] | 21 | // CHECK-CC1: NotImplemented:{TypedText operator} (40) |
| 22 | // CHECK-CC1: NotImplemented:{TypedText volatile} (40) |
Douglas Gregor | 2ccccb3 | 2010-08-23 18:23:48 +0000 | [diff] [blame] | 23 | // RUN: c-index-test -code-completion-at=%s:8:11 %s | FileCheck -check-prefix=CHECK-CC2 %s |
Douglas Gregor | 52779fb | 2010-09-23 23:01:17 +0000 | [diff] [blame] | 24 | // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:8:11 %s | FileCheck -check-prefix=CHECK-CC2 %s |
Douglas Gregor | 8ec904c | 2010-10-19 00:03:23 +0000 | [diff] [blame] | 25 | // CHECK-CC2: NotImplemented:{TypedText const} (40) |
Douglas Gregor | e8d7beb | 2010-09-03 23:30:36 +0000 | [diff] [blame] | 26 | // CHECK-CC2-NOT: Namespace:{TypedText N}{Text ::} (75) |
Douglas Gregor | 8ec904c | 2010-10-19 00:03:23 +0000 | [diff] [blame] | 27 | // CHECK-CC2-NOT: NotImplemented:{TypedText operator} (40) |
| 28 | // CHECK-CC2: NotImplemented:{TypedText volatile} (40) |
Douglas Gregor | 2ccccb3 | 2010-08-23 18:23:48 +0000 | [diff] [blame] | 29 | // RUN: c-index-test -code-completion-at=%s:13:7 %s | FileCheck -check-prefix=CHECK-CC3 %s |
Douglas Gregor | 52779fb | 2010-09-23 23:01:17 +0000 | [diff] [blame] | 30 | // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:13:7 %s | FileCheck -check-prefix=CHECK-CC3 %s |
Douglas Gregor | 8ec904c | 2010-10-19 00:03:23 +0000 | [diff] [blame] | 31 | // CHECK-CC3: NotImplemented:{TypedText const} (40) |
Douglas Gregor | e8d7beb | 2010-09-03 23:30:36 +0000 | [diff] [blame] | 32 | // CHECK-CC3-NOT: Namespace:{TypedText N}{Text ::} (75) |
Douglas Gregor | 8ec904c | 2010-10-19 00:03:23 +0000 | [diff] [blame] | 33 | // CHECK-CC3: NotImplemented:{TypedText operator} (40) |
| 34 | // CHECK-CC3: NotImplemented:{TypedText volatile} (40) |
Douglas Gregor | 2ccccb3 | 2010-08-23 18:23:48 +0000 | [diff] [blame] | 35 | // RUN: c-index-test -code-completion-at=%s:14:14 %s | FileCheck -check-prefix=CHECK-CC4 %s |
Douglas Gregor | 52779fb | 2010-09-23 23:01:17 +0000 | [diff] [blame] | 36 | // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:14:14 %s | FileCheck -check-prefix=CHECK-CC4 %s |
Douglas Gregor | 8ec904c | 2010-10-19 00:03:23 +0000 | [diff] [blame] | 37 | // CHECK-CC4: NotImplemented:{TypedText const} (40) |
Douglas Gregor | e8d7beb | 2010-09-03 23:30:36 +0000 | [diff] [blame] | 38 | // CHECK-CC4: Namespace:{TypedText N}{Text ::} (75) |
Douglas Gregor | 8ec904c | 2010-10-19 00:03:23 +0000 | [diff] [blame] | 39 | // CHECK-CC4: NotImplemented:{TypedText operator} (40) |
| 40 | // CHECK-CC4: NotImplemented:{TypedText volatile} (40) |
Douglas Gregor | 52779fb | 2010-09-23 23:01:17 +0000 | [diff] [blame] | 41 | // CHECK-CC4: StructDecl:{TypedText Y}{Text ::} (75) |
| 42 | // CHECK-CC4: StructDecl:{TypedText Z}{Text ::} (75) |
Douglas Gregor | 2ccccb3 | 2010-08-23 18:23:48 +0000 | [diff] [blame] | 43 | |