Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7fb3031 authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: Add structs to Rust canonical tests

We can parse the definitions fine (we parse them like a packet), but
we cannot yet handle struct fields.

Test: atest pdl_tests pdl_rust_generator_tests_{le,be}
Change-Id: Idd14f43ad0cf32ebeeaa532b15b36259e0808728
parent b2b47630
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -12,6 +12,16 @@ enum Enum16 : 16 {
    B = 0xccdd,
}

struct SizedStruct {
    a: 8,
}

struct UnsizedStruct {
    _size_(array): 2,
    _reserved_: 6,
    array: 8[],
}

enum MaxDiscriminantEnum : 64 {
     Max = 0xffffffffffffffff,
}
+10 −0
Original line number Diff line number Diff line
@@ -12,6 +12,16 @@ enum Enum16 : 16 {
    B = 0xccdd,
}

struct SizedStruct {
    a: 8,
}

struct UnsizedStruct {
    _size_(array): 2,
    _reserved_: 6,
    array: 8[],
}

enum MaxDiscriminantEnum : 64 {
     Max = 0xffffffffffffffff,
}