aboutsummaryrefslogtreecommitdiffstats
path: root/dtc/tests/sourceoutput.dts
diff options
context:
space:
mode:
Diffstat (limited to 'dtc/tests/sourceoutput.dts')
-rw-r--r--dtc/tests/sourceoutput.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/dtc/tests/sourceoutput.dts b/dtc/tests/sourceoutput.dts
new file mode 100644
index 000000000..5a7459bff
--- /dev/null
+++ b/dtc/tests/sourceoutput.dts
@@ -0,0 +1,14 @@
+/dts-v1/;
+
+/ {
+ /* Some versions had an off-by-2 bug which caused an abort
+ * when outputting labels within strings like this in source
+ * format */
+ prop1: prop1 = start1: "foo", mid1: "bar" end1: ;
+
+ /* Make sure that we correctly handle source output of things
+ * which could almost be expressed as strings, except for the
+ * embedded labels */
+ prop2 = start2: [66 6f 6f], mid2: "bar" end2: ;
+};
+