xref: /netbsd-src/external/gpl2/dtc/dist/tests/line_directives.dts (revision 04028aa9310ca9c619eca5cf58ddf1e58624d1d7)
1/dts-v1/;
2
3/* common format */
4#line 3 "foo.dts"
5/* newer gcc format */
6# 9 "baz.dts" 1
7/* flags are optional */
8# 6 "bar.dts"
9
10/ {
11/*
12 * Make sure optional flags don't consume integer data on next line. The issue
13 * was that the {WS} in the trailing ({WS}+[0-9]+)? could cross the * line-
14 * break, and consume the leading "0" of the hex constant, leaving "x12345678"
15 * to be parsed as a number, which is invalid syntax.
16 */
17	prop1 = <
18# 10 "qux.dts"
19		0x12345678
20	>;
21};
22