At present, the lexer token for references to a path doesn't permit a
reference to the root node &{/}. Fixing the lexer exposes another bug
handling this case.
This patch fixes both bugs and adds testcases.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
16 lines
254 B
Plaintext
16 lines
254 B
Plaintext
/dts-v1/;
|
|
|
|
/ {
|
|
rref = &{/};
|
|
/* Check multiple references case */
|
|
multiref = &n1 , &n2;
|
|
n1: node1 {
|
|
ref = &{/node2}; /* reference precedes target */
|
|
lref = &n2;
|
|
};
|
|
n2: node2 {
|
|
ref = &{/node1}; /* reference after target */
|
|
lref = &n1;
|
|
};
|
|
};
|