File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 39
39
// RANGE-NEXT: "line": 15,
40
40
// RANGE-NEXT: "column": 2
41
41
// RANGE-NEXT: }
42
+ // RANGE-NEXT: },
43
+ // RANGE-NEXT: {
44
+ // RANGE-NEXT: "from": {
45
+ // RANGE-NEXT: "line": 19,
46
+ // RANGE-NEXT: "column": 1
47
+ // RANGE-NEXT: },
48
+ // RANGE-NEXT: "to": {
49
+ // RANGE-NEXT: "line": 19,
50
+ // RANGE-NEXT: "column": 41
51
+ // RANGE-NEXT: }
52
+ // RANGE-NEXT: },
53
+ // RANGE-NEXT: {
54
+ // RANGE-NEXT: "from": {
55
+ // RANGE-NEXT: "line": 20,
56
+ // RANGE-NEXT: "column": 1
57
+ // RANGE-NEXT: },
58
+ // RANGE-NEXT: "to": {
59
+ // RANGE-NEXT: "line": 23,
60
+ // RANGE-NEXT: "column": 2
61
+ // RANGE-NEXT: }
42
62
// RANGE-NEXT: }
43
63
// RANGE-NEXT: ]
44
64
// RANGE-NEXT: }
@@ -68,6 +88,16 @@ int multiply(int a, int b) {
68
88
return a * b;
69
89
}
70
90
91
+ inline int unused_by_foo () {} // line 17
92
+
93
+ inline void recursively_used_by_foo () {} // line 19
94
+ inline int used_by_foo () { // line 20
95
+ recursively_used_by_foo ();
96
+ return 1 ;
97
+ }
98
+
99
+ struct UnusedByFoo {};
100
+
71
101
// --- foo.cpp
72
102
#include " foo.h"
73
103
int global_value = 5 ;
@@ -76,4 +106,6 @@ int main() {
76
106
int current_value = data.getValue ();
77
107
int doubled_value = multiply (current_value, 2 );
78
108
int final_result = doubled_value + global_value;
109
+
110
+ return used_by_foo ();
79
111
}
You can’t perform that action at this time.
0 commit comments