aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test/any.txt
blob: b936c7651b0b09203f20583c408b6eee54739b86 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2018 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

resource anyres8[int8]
resource anyres32[int32]
resource anyres64[int64]

foo$anyres(a0 ptr[out, anyres8], a1 ptr[out, anyres32], a2 ptr[out, anyres64])

foo$any_in(a ptr[in, any0])
foo$any_inout(a ptr[inout, any0])
foo$any_filename(a ptr[in, any_filename])

any0 {
	f1	int8
	f2	int32
	f3	int16be
	f4	int64
	f5	anybitfields
	f6	array[any1]
} [align[8]]

any1 {
	f1	anyunion0
	f2	anyunion1
	f3	array[int8]
} [packed, align[2]]

anyunion0 [
	res8	anyres8
	res32	anyres32
	res64	anyres64
]

anyunion1 [
	i8	int8
	i32	int32
] [varlen]

anybitfields {
	f1	int8:2
	f2	int8:3
	f3	int8:1
	f4	int16:1
	f5	int16:10
	f6	int16:3
}

any_filename [
	complex		any0
	filename	filename
] [varlen]