diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-07 20:07:30 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-07-08 22:52:24 +0200 |
| commit | 306ca0571c5d906ce76df97bd1ea54f4e0e50240 (patch) | |
| tree | a579718e096c53dc5386f4af2fbabb3318eaf1ed /sys/test/fmt.txt | |
| parent | 93213ec0d3c4522c8844a51b718eb56ce62f395b (diff) | |
prog, pkg/compiler: support fmt type
fmt type allows to convert intergers and resources
to string representation.
Diffstat (limited to 'sys/test/fmt.txt')
| -rw-r--r-- | sys/test/fmt.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/test/fmt.txt b/sys/test/fmt.txt new file mode 100644 index 000000000..e304ae1e7 --- /dev/null +++ b/sys/test/fmt.txt @@ -0,0 +1,17 @@ +# 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 r_any[int32be] + +foo$fmt0(a ptr[in, fmt[dec, int32[1:10]]]) r_any +foo$fmt1(a ptr[in, fmt[hex, flags[flags_any]]]) +foo$fmt2(a ptr[in, fmt[oct, len[b]]], b ptr[in, array[int8]]) +foo$fmt3(a ptr[in, fmt[dec, proc[10, 20]]]) +foo$fmt4(a ptr[in, fmt[dec, r_any]]) +foo$fmt5(a ptr[in, struct$fmt0]) + +struct$fmt0 { + f0 fmt[dec, int8] +} + +flags_any = 0, 1, 2 |
