platform_external_dtc/tests/label_repeated.dts
Stephen Warren f67dfe8459 Add test for re-defining an identical label
When merging one device tree over the top of a previous tree, it is
possible to define a duplicate label that has the same name and points
to the same property or node. This is currently allowed by the duplicate
label checking code. However, alternative duplicate label checking
algorithms might not allow this. Add an explicit test to ensure this
capability is maintained.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
2012-07-08 13:43:17 -05:00

15 lines
98 B
Text

/dts-v1/;
/ {
l0: prop = "foo";
l1: node {
};
};
/ {
l0: prop = "foo";
l1: node {
};
};