summaryrefslogtreecommitdiff
path: root/tools/pdl/test/fixed-field.pdl
blob: e69fc7e37fa86d3faef8ae018b714465e615d37c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
little_endian_packets

enum Enum : 1 {
    tag = 0,
}

packet InvalidValue {
    _fixed_ = 1: 256,
}

packet UndeclaredEnum {
    _fixed_ = tag : InvalidEnum,
}

packet UndeclaredTag {
    _fixed_ = invalid_tag : Enum,
}

packet Correct {
    _fixed_ = 1: 256,
    _fixed_ = tag: Enum,
}