aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2016-10-11 21:01:21 +0200
committerAndrey Konovalov <andreyknvl@google.com>2016-10-13 15:38:58 +0200
commite4edb0e20b90350779b319f60f0d7878ef423e4f (patch)
tree8ca14885513f95d3fb6b8fc5d9e2d612d7db79a0 /sys
parent7686d19affbd3f592a64517679df85b9d49f4628 (diff)
Add tests for big-endian ints
Diffstat (limited to 'sys')
-rw-r--r--sys/test.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/test.txt b/sys/test.txt
index bf66d83aa..a4381c1ad 100644
--- a/sys/test.txt
+++ b/sys/test.txt
@@ -166,3 +166,24 @@ syz_length_large_struct {
f1 int64
f2 array[int32, 8]
}
+
+# Big endian.
+
+syz_test$end0(a0 ptr[in, syz_end_int_struct])
+syz_test$end1(a0 ptr[in, syz_end_var_struct])
+
+syz_end_flags = 0, 1
+
+syz_end_int_struct {
+ f0 int8
+ f1 int16be
+ f2 int32be
+ f3 int64be
+ f4 intptrbe
+} [packed]
+
+syz_end_var_struct {
+ f0 len[parent, int16be]
+ f1 const[0x42, int32be]
+ f2 flags[syz_end_flags, int64be]
+} [packed]