aboutsummaryrefslogtreecommitdiffstats
path: root/tests/path-references.dts
blob: 8c66d8057bbdc7f98800428023b0155de03eb05a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/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;
	};
	/* Check references to nested nodes with common prefix */
	foobar {
		n3: baz {
			ref = &{/foo/baz};
			lref = &n4;
		};
	};
	foo {
		n4: baz {
			ref = &{/foobar/baz};
			lref = &n3;
		};
	};
};