blob: 61d776589237a96c830fc14d2d2deb821b7a57fd [file] [log] [blame]
Douglas Gregor2ccccb32010-08-23 18:23:48 +00001// This test is line- and column-sensitive, so test commands are at the bottom.
2namespace N {
3 struct X {
4 int f(X);
5 };
6}
7
8int g(int a);
9
10struct Y { };
11
12struct 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
18// CHECK-CC1: NotImplemented:{TypedText const} (30)
19// CHECK-CC1: NotImplemented:{TypedText N}{Text ::} (75)
20// CHECK-CC1: NotImplemented:{TypedText operator} (30)
21// CHECK-CC1: NotImplemented:{TypedText volatile} (30)
22// RUN: c-index-test -code-completion-at=%s:8:11 %s | FileCheck -check-prefix=CHECK-CC2 %s
23// CHECK-CC2: NotImplemented:{TypedText const} (30)
24// CHECK-CC2-NOT: NotImplemented:{TypedText N}{Text ::} (75)
25// CHECK-CC2-NOT: NotImplemented:{TypedText operator} (30)
26// CHECK-CC2: NotImplemented:{TypedText volatile} (30)
27// RUN: c-index-test -code-completion-at=%s:13:7 %s | FileCheck -check-prefix=CHECK-CC3 %s
28// CHECK-CC3: NotImplemented:{TypedText const} (30)
29// CHECK-CC3-NOT: NotImplemented:{TypedText N}{Text ::} (75)
30// CHECK-CC3: NotImplemented:{TypedText operator} (30)
31// CHECK-CC3: NotImplemented:{TypedText volatile} (30)
32// RUN: c-index-test -code-completion-at=%s:14:14 %s | FileCheck -check-prefix=CHECK-CC4 %s
33// CHECK-CC4: NotImplemented:{TypedText const} (30)
34// CHECK-CC4: NotImplemented:{TypedText N}{Text ::} (75)
35// CHECK-CC4: NotImplemented:{TypedText operator} (30)
36// CHECK-CC4: NotImplemented:{TypedText volatile} (30)
Douglas Gregord43dd832010-08-24 23:40:45 +000037// CHECK-CC4: StructDecl:{TypedText Y} (65)
Douglas Gregor2ccccb32010-08-23 18:23:48 +000038// CHECK-CC4: StructDecl:{TypedText Z} (20)
39