1 ## We have a special "<none>" value for all keys that are implemented
2 ## as Optional<> in the code. Setting a key to "<none>" means no-op and
3 ## works in the same way as when a field was not specified at all.
5 ## Test a few keys for which the "<none>" value is supported.
6 ## We do not test all possible keys, because it would be too verbose.
7 ## It reasonable to test all keys for a section, because normally many
8 ## of them would conflict or intersect when specified together.
9 # RUN: yaml2obj %s --docnum=1 -o %t-none
10 # RUN: yaml2obj %s --docnum=2 -o %t-base
11 # RUN: cmp %t-none %t-base
13 ## We do not use the TEST macro. It exists to
14 ## demonstrate the expected use case for the <none> word.
23 Flags: [[TEST=<none>]] ## Comment
24 Offset: [[TEST=<none>]]
25 Address: [[TEST=<none>]]
26 Content: [[TEST=<none>]]
28 ContentArray: [[TEST=<none>]]
30 EntSize: [[TEST=<none>]]
31 ShName: [[TEST=<none>]]
32 ShOffset: [[TEST=<none>]]
33 ShSize: [[TEST=<none>]]
34 ShFlags: [[TEST=<none>]]
36 ## The same document, but all fields that were set to <none> are removed.