github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/pkg/compiler/testdata/consts.txt (about)

     1  # Copyright 2017 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  include <foo/bar.h>
     5  incdir </foo>
     6  include <bar/foo.h>
     7  incdir </bar>
     8  
     9  flags = CONST3, CONST2, CONST1
    10  
    11  define CONST1 1
    12  define CONST2 FOOBAR + 1
    13  
    14  foo(x const[CONST4], y ptr[out, array[int32, CONST5]])
    15  bar$BAR()
    16  
    17  str {
    18  	f1	const[CONST6, int32]
    19  	f2	array[array[int8, CONST7]]
    20  }
    21  
    22  bar$BAZ(x vma[opt], y vma[CONST8], z vma[CONST9:CONST10])
    23  bar$QUX(s ptr[in, string["foo", CONST11]], x ptr[in, csum[s, pseudo, CONST12, int16]])
    24  bar$FOO(x int8[8:CONST13], y int16be[CONST14:10], z intptr[CONST15:CONST16], w int32[0:CONST25, CONST26])
    25  
    26  type type0 const[CONST17, int8]
    27  type templ0[C] const[C, int8]
    28  foo$0(a templ0[CONST18])
    29  type templ1[C] {
    30  	f1	const[CONST19, int8]
    31  	f2	const[C, int8]
    32  	f3	int64 (if[value[f1] & CONST27 != 0])
    33  }
    34  foo$1(a ptr[in, templ1[CONST20]])
    35  
    36  str2 {
    37  	f1	int8
    38  } [size[CONST21]]
    39  
    40  _ = CONST22, CONST23
    41  _ = CONST24