about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2016-11-24 10:28:29 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2016-11-24 10:30:18 +0100
commit75825fe1df47866e1821d8b09f4c75930b6e57c1 (patch)
tree8e4dfc12acf11d473cadd7718018410b61d46af1 /src/test/run-pass/thinlto
parent70e5ca2ab49ca31485780f6fa981c5164b2cc848 (diff)
downloadrust-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