aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/consts.txt
blob: 7b2845d7a9cf7033fa4fd3916567607a3c197015 (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
# Copyright 2017 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.

include <foo/bar.h>
incdir </foo>
include <bar/foo.h>
incdir </bar>

flags = CONST3, CONST2, CONST1

define CONST1 1
define CONST2 FOOBAR + 1

foo(x const[CONST4], y ptr[out, array[int32, CONST5]])
bar$BAR()

str {
	f1	const[CONST6, int32]
	f2	array[array[int8, CONST7]]
}

bar$BAZ(x vma[opt], y vma[CONST8], z vma[CONST9:CONST10])
bar$QUX(s ptr[in, string["foo", CONST11]], x ptr[in, csum[s, pseudo, CONST12, int16]])
bar$FOO(x int8[8:CONST13], y int16be[CONST14:10], z intptr[CONST15:CONST16], w int32[0:CONST25, CONST26])

type type0 const[CONST17, int8]
type templ0[C] const[C, int8]
foo$0(a templ0[CONST18])
type templ1[C] {
	f1	const[CONST19, int8]
	f2	const[C, int8]
	f3	int64 (if[value[f1] & CONST27 != 0])
}
foo$1(a ptr[in, templ1[CONST20]])

str2 {
	f1	int8
} [size[CONST21]]

_ = CONST22, CONST23
_ = CONST24