• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/dts-v1/;
2
3/* Create some nodes and properties with multiple labels */
4
5/ {
6	label1: label2: prop = "value";
7
8	label3: label4: node {
9		label5: label6: prop = "value";
10	};
11};
12
13/* Delete them, and everything that's part of them, i.e. the labels */
14
15/ {
16	/delete-property/ prop;
17	/delete-node/ node;
18};
19
20/*
21 * Re-instate them. None of the old labels should come back
22 *
23 * Note: Do not add any new/extra labels here. As of the time of writing,
24 * when dtc adds labels to an object, they are added to the head of the list
25 * of labels, and this test is specifically about ensuring the correct
26 * handling of lists of labels where the first label in the list is marked as
27 * deleted. Failure to observe this note may result in the test passing when
28 * it should not.
29 */
30
31/ {
32	prop = "value";
33
34	node {
35		prop = "value";
36	};
37};
38