ceremonyclient/bedlam/testsuite/lang/const_slice_arr_1.qcl
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

20 lines
329 B
Go

// -*- go -*-
package main
// @Hex
// @LSB
// @Test 0 0 = 0x2c20776f726c6421
func main(a, b int32) []byte {
// 48 65 6c 6c 6f | 2c 20 77 6f 72 6c 64 21
data := []byte{
0x48, 0x65, 0x6c, 0x6c, 0x6f,
0x2c, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x21,
}
return foo(data[5:])
}
func foo(data []byte) []byte {
return data
}