repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git]
/
test
/
YAMLParser
/
construct-merge.test
blob
0ebc9f612d5db94477a27703b412764c027c5704
1
# RUN: yaml-bench -canonical %s
2
3
---
4
- &CENTER { x: 1, 'y': 2 }
5
- &LEFT { x: 0, 'y': 2 }
6
- &BIG { r: 10 }
7
- &SMALL { r: 1 }
8
9
# All the following maps are equal:
10
11
- # Explicit keys
12
x: 1
13
'y': 2
14
r: 10
15
label: center/big
16
17
- # Merge one map
18
<< : *CENTER
19
r: 10
20
label: center/big
21
22
- # Merge multiple maps
23
<< : [ *CENTER, *BIG ]
24
label: center/big
25
26
- # Override
27
<< : [ *BIG, *LEFT, *SMALL ]
28
x: 1
29
label: center/big