aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test/exec.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-23 16:46:09 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-23 17:13:55 +0200
commit70c104a18f3d409bc6dde950b50258d3d280d99b (patch)
treef04031861627a08784d525296deba6f16c9d12e6 /sys/test/exec.txt
parent340ea5301c27db4a3678f13acc430e04706a0cc6 (diff)
pkg/compiler: fix crash on fmt[flags]
Flags with only 1 value 0 are transformed to ConstType. Fmt did not expect that. Fixes #1965
Diffstat (limited to 'sys/test/exec.txt')
-rw-r--r--sys/test/exec.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/test/exec.txt b/sys/test/exec.txt
index 6ad985838..bb293e1d0 100644
--- a/sys/test/exec.txt
+++ b/sys/test/exec.txt
@@ -41,8 +41,14 @@ compare_data [
blob array[int8]
arr16be array[int16be]
nla array[compare_nla]
+ fmt0 fmt[oct, int32]
+ fmt1 fmt[dec, int32]
+ fmt2 fmt[hex, int32]
+ fmt3 fmt[dec, flags[flags_with_one_value]]
] [varlen]
+flags_with_one_value = 0
+
compare_nla [
a0 nlattr[0xaa, int8]
a1 nlattr[0xbb, int16]