blob: 8fba4db2f9887d9cbc32052013d74be4eb9d2285 [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)
Douglas Gregore8d7beb2010-09-03 23:30:36 +000019// CHECK-CC1: Namespace:{TypedText N}{Text ::} (75)
Douglas Gregor2ccccb32010-08-23 18:23:48 +000020// 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)
Douglas Gregore8d7beb2010-09-03 23:30:36 +000024// CHECK-CC2-NOT: Namespace:{TypedText N}{Text ::} (75)
Douglas Gregor2ccccb32010-08-23 18:23:48 +000025// 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)
Douglas Gregore8d7beb2010-09-03 23:30:36 +000029// CHECK-CC3-NOT: Namespace:{TypedText N}{Text ::} (75)
Douglas Gregor2ccccb32010-08-23 18:23:48 +000030// 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)
Douglas Gregore8d7beb2010-09-03 23:30:36 +000034// CHECK-CC4: Namespace:{TypedText N}{Text ::} (75)
Douglas Gregor2ccccb32010-08-23 18:23:48 +000035// 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