Commit a530e0f
Improve #12796 tests: TDD with compileAndRun, ILVerify, and runtime reflection
- Rewrite tests to use compileExeAndRun pipeline: compile, shouldSucceed,
verifyPEFileWithSystemDlls, run, verify stdout
- Each test compiles an exe that reads the attribute value via reflection
at runtime and verifies the array length is 0
- Add ILVerify step (verifyPEFileWithSystemDlls) to validate IL metadata
- Fix decodeCustomAttrElemType to handle 0x51 (SERIALIZATION_TYPE_TAGGED_OBJECT)
for object[] array element types in custom attribute blobs (ECMA-335 II.23.3)
- Add open FSharp.Test for ILVerifierModule access
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a8d77f7 commit a530e0f
2 files changed
Lines changed: 62 additions & 13 deletions
File tree
- src/Compiler/AbstractIL
- tests/FSharp.Compiler.ComponentTests/Language
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4978 | 4978 | | |
4979 | 4979 | | |
4980 | 4980 | | |
| 4981 | + | |
4981 | 4982 | | |
4982 | 4983 | | |
4983 | 4984 | | |
| |||
Lines changed: 61 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
197 | | - | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| 203 | + | |
202 | 204 | | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
206 | 218 | | |
207 | | - | |
| 219 | + | |
208 | 220 | | |
209 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
210 | 227 | | |
211 | 228 | | |
212 | 229 | | |
213 | | - | |
| 230 | + | |
214 | 231 | | |
215 | 232 | | |
216 | 233 | | |
217 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
218 | 239 | | |
219 | | - | |
220 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
221 | 250 | | |
222 | | - | |
| 251 | + | |
223 | 252 | | |
224 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
225 | 259 | | |
226 | 260 | | |
227 | 261 | | |
228 | | - | |
| 262 | + | |
229 | 263 | | |
230 | 264 | | |
231 | 265 | | |
232 | 266 | | |
233 | | - | |
234 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
235 | 280 | | |
236 | | - | |
| 281 | + | |
237 | 282 | | |
238 | 283 | | |
239 | | - | |
240 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
0 commit comments