MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / main

Function main

tests/binary/unions/src/main.rs:35–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 unsigned: u32,
34 signed: i32,
35 float: f32,
36}
37
38#[derive(Copy, Clone)]
39#[repr(C)]
40struct CharacterAndUnit {
41 character: char,
42 unit: (),
43}
44
45union CharacterBytes {
46 character: char,
47 code_point: u32,
48 bytes: FourBytes,
49 character_and_unit: CharacterAndUnit,
50 unit: (),
51}
52
53#[derive(Copy, Clone)]
54enum DefaultDiscriminant {
55 Zero,
56 Three = 3,
57 Four,
58}
59
60union DefaultEnumByte {
61 value: DefaultDiscriminant,
62 byte: u8,
63}
64
65#[derive(Copy, Clone)]
66#[repr(i16)]
67enum SignedDiscriminant {
68 Negative = -2,
69 Seven = 7,
70 Eight,
71}
72

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected