1 # Copyright 2018 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 resource anyres32[int32] 5 resource anyres64[int64] 6 7 foo$anyres(a0 ptr[out, anyres32], a1 ptr[out, anyres64]) 8 9 foo$any0(a ptr[in, any0]) 10 11 any0 { 12 f1 int8 13 f2 int32 14 f3 int16be 15 f4 int64 16 f5 anybitfields 17 f6 array[any1] 18 } [align_8] 19 20 any1 { 21 f1 ptr[in, int8, opt] 22 f2 anyunion0 23 f3 ptr64[in, int8, opt] 24 f4 anyunion1 25 f5 array[int8] 26 } [packed, align_2] 27 28 anyunion0 [ 29 res32 anyres32 30 res64 anyres64 31 ] 32 33 anyunion1 [ 34 i8 int8 35 i32 int32 36 ] [varlen] 37 38 anybitfields { 39 f1 int8:2 40 f2 int8:3 41 f3 int8:1 42 f4 int16:1 43 f5 int16:10 44 f6 int16:3 45 } 46