1*f4a2713aSLionel Sambuc // This test is line- and column-sensitive, so test commands are at the bottom. 2*f4a2713aSLionel Sambuc namespace N { 3*f4a2713aSLionel Sambuc struct X { 4*f4a2713aSLionel Sambuc int f(X); 5*f4a2713aSLionel Sambuc }; 6*f4a2713aSLionel Sambuc } 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc int g(int a); 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc struct Y { }; 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc struct Z { 13*f4a2713aSLionel Sambuc int member; 14*f4a2713aSLionel Sambuc friend int N::X::f(N::X); 15*f4a2713aSLionel Sambuc }; 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc // RUN: c-index-test -code-completion-at=%s:8:5 %s | FileCheck -check-prefix=CHECK-CC1 %s 18*f4a2713aSLionel Sambuc // 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 19*f4a2713aSLionel Sambuc // CHECK-CC1: NotImplemented:{TypedText const} (40) 20*f4a2713aSLionel Sambuc // CHECK-CC1: Namespace:{TypedText N}{Text ::} (75) 21*f4a2713aSLionel Sambuc // CHECK-CC1: NotImplemented:{TypedText operator} (40) 22*f4a2713aSLionel Sambuc // CHECK-CC1: NotImplemented:{TypedText volatile} (40) 23*f4a2713aSLionel Sambuc // RUN: c-index-test -code-completion-at=%s:8:11 %s | FileCheck -check-prefix=CHECK-CC2 %s 24*f4a2713aSLionel Sambuc // 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 25*f4a2713aSLionel Sambuc // CHECK-CC2: NotImplemented:{TypedText const} (40) 26*f4a2713aSLionel Sambuc // CHECK-CC2-NOT: Namespace:{TypedText N}{Text ::} (75) 27*f4a2713aSLionel Sambuc // CHECK-CC2-NOT: NotImplemented:{TypedText operator} (40) 28*f4a2713aSLionel Sambuc // CHECK-CC2: NotImplemented:{TypedText volatile} (40) 29*f4a2713aSLionel Sambuc // RUN: c-index-test -code-completion-at=%s:13:7 %s | FileCheck -check-prefix=CHECK-CC3 %s 30*f4a2713aSLionel Sambuc // 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 31*f4a2713aSLionel Sambuc // CHECK-CC3: NotImplemented:{TypedText const} (40) 32*f4a2713aSLionel Sambuc // CHECK-CC3-NOT: Namespace:{TypedText N}{Text ::} (75) 33*f4a2713aSLionel Sambuc // CHECK-CC3: NotImplemented:{TypedText operator} (40) 34*f4a2713aSLionel Sambuc // CHECK-CC3: NotImplemented:{TypedText volatile} (40) 35*f4a2713aSLionel Sambuc // RUN: c-index-test -code-completion-at=%s:14:14 %s | FileCheck -check-prefix=CHECK-CC4 %s 36*f4a2713aSLionel Sambuc // 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 37*f4a2713aSLionel Sambuc // CHECK-CC4: NotImplemented:{TypedText const} (40) 38*f4a2713aSLionel Sambuc // CHECK-CC4: Namespace:{TypedText N}{Text ::} (75) 39*f4a2713aSLionel Sambuc // CHECK-CC4: NotImplemented:{TypedText operator} (40) 40*f4a2713aSLionel Sambuc // CHECK-CC4: NotImplemented:{TypedText volatile} (40) 41*f4a2713aSLionel Sambuc // CHECK-CC4: StructDecl:{TypedText Y}{Text ::} (75) 42*f4a2713aSLionel Sambuc // CHECK-CC4: StructDecl:{TypedText Z}{Text ::} (75) 43*f4a2713aSLionel Sambuc 44