brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 74b5b13 Raw
33 lines · cpp
1// RUN: c-index-test core -print-source-symbols -- -target x86_64-apple-darwin10 -fms-extensions -fno-ms-compatibility %s | FileCheck %s2 3// CHECK: [[@LINE+1]]:8 | struct/C++ | Simple | [[Simple_USR:.*]] | <no-cgname> | Def | rel: 04struct Simple {5  int GetX() const;6  // CHECK: [[@LINE-1]]:7 | instance-method/C++ | GetX | [[GetX_USR:.*]] | __ZNK6Simple4GetXEv | Decl,RelChild | rel: 17  // CHECK-NEXT: RelChild | Simple | [[Simple_USR]]8 9  void PutX(int i);10  // CHECK: [[@LINE-1]]:8 | instance-method/C++ | PutX | [[PutX_USR:.*]] | __ZN6Simple4PutXEi | Decl,RelChild | rel: 111  // CHECK-NEXT: RelChild | Simple | [[Simple_USR]]12 13  __declspec(property(get=GetX, put=PutX)) int propX;14  // CHECK: [[@LINE-1]]:48 | instance-property/C++ | propX | [[propX_USR:.*]] | <no-cgname> | Def,RelChild | rel: 115  // CHECK-NEXT: RelChild | Simple | [[Simple_USR]]16};17 18// CHECK: [[@LINE+1]]:5 | function/C | test | [[test_USR:.*]] | __Z4testv | Def | rel: 019int test() {20  Simple s;21  s.propX = 5;22  // CHECK: [[@LINE-1]]:5 | instance-property/C++ | propX | [[propX_USR]] | <no-cgname> | Ref,RelCont | rel: 123  // CHECK-NEXT: RelCont | test | [[test_USR]]24  // CHECK: [[@LINE-3]]:5 | instance-method/C++ | PutX | [[PutX_USR]] | __ZN6Simple4PutXEi | Ref,Call,RelCall,RelCont | rel: 125  // CHECK-NEXT: RelCall,RelCont | test | [[test_USR]]26 27  return s.propX;28  // CHECK: [[@LINE-1]]:12 | instance-property/C++ | propX | [[propX_USR]] | <no-cgname> | Ref,RelCont | rel: 129  // CHECK-NEXT: RelCont | test | [[test_USR]]30  // CHECK: [[@LINE-3]]:12 | instance-method/C++ | GetX | [[GetX_USR]] | __ZNK6Simple4GetXEv | Ref,Call,RelCall,RelCont | rel: 131  // CHECK-NEXT: RelCall,RelCont | test | [[test_USR]]32}33