1 // compile-flags: -Z print-type-sizes
4 // ^-- needed because `--pass check` does not emit the output needed.
5 // FIXME: consider using an attribute instead of side-effects.
7 // This file illustrates that when the same type occurs repeatedly
8 // (even if multiple functions), it is only printed once in the
9 // print-type-sizes output.
13 pub struct SevenBytes([u8; 7]);
16 let _s: SevenBytes = SevenBytes([0; 7]);
20 fn start(_: isize, _: *const *const u8) -> isize {
21 let _s: SevenBytes = SevenBytes([0; 7]);