Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / ms-property.cpp
blobd30d30d033d888c5400fb00b31c7a7dae8694733
1 // XFAIL: target={{.*}}-aix{{.*}}
2 // RUN: c-index-test core -print-source-symbols -- -target x86_64-apple-darwin10 -fms-extensions -fno-ms-compatibility %s | FileCheck %s
4 // CHECK: [[@LINE+1]]:8 | struct/C++ | Simple | [[Simple_USR:.*]] | <no-cgname> | Def | rel: 0
5 struct Simple {
6 int GetX() const;
7 // CHECK: [[@LINE-1]]:7 | instance-method/C++ | GetX | [[GetX_USR:.*]] | __ZNK6Simple4GetXEv | Decl,RelChild | rel: 1
8 // CHECK-NEXT: RelChild | Simple | [[Simple_USR]]
10 void PutX(int i);
11 // CHECK: [[@LINE-1]]:8 | instance-method/C++ | PutX | [[PutX_USR:.*]] | __ZN6Simple4PutXEi | Decl,RelChild | rel: 1
12 // CHECK-NEXT: RelChild | Simple | [[Simple_USR]]
14 __declspec(property(get=GetX, put=PutX)) int propX;
15 // CHECK: [[@LINE-1]]:48 | instance-property/C++ | propX | [[propX_USR:.*]] | <no-cgname> | Def,RelChild | rel: 1
16 // CHECK-NEXT: RelChild | Simple | [[Simple_USR]]
19 // CHECK: [[@LINE+1]]:5 | function/C | test | [[test_USR:.*]] | __Z4testv | Def | rel: 0
20 int test() {
21 Simple s;
22 s.propX = 5;
23 // CHECK: [[@LINE-1]]:5 | instance-property/C++ | propX | [[propX_USR]] | <no-cgname> | Ref,RelCont | rel: 1
24 // CHECK-NEXT: RelCont | test | [[test_USR]]
25 // CHECK: [[@LINE-3]]:5 | instance-method/C++ | PutX | [[PutX_USR]] | __ZN6Simple4PutXEi | Ref,Call,RelCall,RelCont | rel: 1
26 // CHECK-NEXT: RelCall,RelCont | test | [[test_USR]]
28 return s.propX;
29 // CHECK: [[@LINE-1]]:12 | instance-property/C++ | propX | [[propX_USR]] | <no-cgname> | Ref,RelCont | rel: 1
30 // CHECK-NEXT: RelCont | test | [[test_USR]]
31 // CHECK: [[@LINE-3]]:12 | instance-method/C++ | GetX | [[GetX_USR]] | __ZNK6Simple4GetXEv | Ref,Call,RelCall,RelCont | rel: 1
32 // CHECK-NEXT: RelCall,RelCont | test | [[test_USR]]