1*f4a2713aSLionel Sambuc // Test is line- and column-sensitive; see below. 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc struct X { 4*f4a2713aSLionel Sambuc X(int value); 5*f4a2713aSLionel Sambuc X(const X& x); 6*f4a2713aSLionel Sambuc protected: 7*f4a2713aSLionel Sambuc ~X(); 8*f4a2713aSLionel Sambuc private: 9*f4a2713aSLionel Sambuc operator X*(); 10*f4a2713aSLionel Sambuc }; 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc X::X(int value) { 13*f4a2713aSLionel Sambuc } 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuc // RUN: c-index-test -test-load-source all %s | FileCheck %s 16*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:3:8: StructDecl=X:3:8 (Definition) Extent=[3:1 - 10:2] 17*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:4:3: CXXConstructor=X:4:3 Extent=[4:3 - 4:15] [access=public] 18*f4a2713aSLionel Sambuc // FIXME: missing TypeRef in the constructor name 19*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:4:9: ParmDecl=value:4:9 (Definition) Extent=[4:5 - 4:14] 20*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:5:3: CXXConstructor=X:5:3 Extent=[5:3 - 5:16] [access=public] 21*f4a2713aSLionel Sambuc // FIXME: missing TypeRef in the constructor name 22*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:5:14: ParmDecl=x:5:14 (Definition) Extent=[5:5 - 5:15] 23*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:5:11: TypeRef=struct X:3:8 Extent=[5:11 - 5:12] 24*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:7:3: CXXDestructor=~X:7:3 Extent=[7:3 - 7:7] [access=protected] 25*f4a2713aSLionel Sambuc // FIXME: missing TypeRef in the destructor name 26*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:9:3: CXXConversion=operator struct X *:9:3 Extent=[9:3 - 9:16] [access=private] 27*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:9:12: TypeRef=struct X:3:8 Extent=[9:12 - 9:13] 28*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:12:4: CXXConstructor=X:12:4 (Definition) Extent=[12:1 - 13:2] [access=public] 29*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:12:1: TypeRef=struct X:3:8 Extent=[12:1 - 12:2] 30*f4a2713aSLionel Sambuc // CHECK: load-classes.cpp:12:10: ParmDecl=value:12:10 (Definition) Extent=[12:6 - 12:15] 31