diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2016-11-24 10:28:29 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2016-11-24 10:30:18 +0100 |
| commit | 75825fe1df47866e1821d8b09f4c75930b6e57c1 (patch) | |
| tree | 8e4dfc12acf11d473cadd7718018410b61d46af1 /src/test/run-pass/thinlto | |
| parent | 70e5ca2ab49ca31485780f6fa981c5164b2cc848 (diff) | |
| download | rust-75825fe1df47866e1821d8b09f4c75930b6e57c1.tar.gz rust-75825fe1df47866e1821d8b09f4c75930b6e57c1.zip | |
Tests of `-Z print-type-sizes` functionality.
Note that the tests have been updated to initialize the local variables; originally it was enough just to declare them. Back when I started this, the `layout_cache` contained entries even just for types that had been declared but not initialized. Apparently things have changed in the interim so that if I want one of those layouts to be computed, I need to actually initialize the value. (Incidentally, this shows a weakness in the strategy of just walking the `layout_cache`; the original strategy of using a MIR visitor would probably have exhibited more robustness in terms of consistent output, but it had other weaknesses so I chose not to reimplement it. At least, not yet.) ---- Also, I have updated tests to avoid target-specific alignments.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
