Repository navigation
Commit bd55523
committed
Make substring field test independent of std::string layout
The field-receiver case kept a std::string by value in a struct, so the
refcount expected output recorded libstdc++'s 32-byte layout and failed
on libc++, where std::string is 24 bytes. Reach the string through a
reference member instead: substr still takes its receiver from a struct
field, and the emitted layout is only the pointer-sized field.
Signed-off-by: Perfloop Agent <agent@perfloop.ai>
Signed-off-by: Tomás Senart <ts@perfloop.ai>1 parent 51b87b5 commit bd55523
3 files changed
Lines changed: 23 additions & 65 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 13 | + | |
| 14 | + | |
27 | 15 | | |
28 | 16 | | |
29 | 17 | | |
| |||
181 | 169 | | |
182 | 170 | | |
183 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
184 | 177 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 178 | + | |
190 | 179 | | |
191 | 180 | | |
192 | 181 | | |
193 | | - | |
| 182 | + | |
194 | 183 | | |
195 | 184 | | |
196 | 185 | | |
| |||
206 | 195 | | |
207 | 196 | | |
208 | 197 | | |
209 | | - | |
| 198 | + | |
210 | 199 | | |
211 | 200 | | |
212 | 201 | | |
| |||
239 | 228 | | |
240 | 229 | | |
241 | 230 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | 231 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 12 | + | |
30 | 13 | | |
31 | 14 | | |
32 | 15 | | |
| |||
206 | 189 | | |
207 | 190 | | |
208 | 191 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
215 | 195 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 196 | + | |
| 197 | + | |
221 | 198 | | |
222 | 199 | | |
223 | 200 | | |
| |||
229 | 206 | | |
230 | 207 | | |
231 | 208 | | |
232 | | - | |
| 209 | + | |
233 | 210 | | |
234 | 211 | | |
235 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments