ceremonyclient/bedlam/testsuite/lang/composite_lit.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

22 lines
260 B
Go

// -*- go -*-
package main
// @Test 0 0 = 21
// @Test 1 2 = 24
func main(a, b int32) int {
arr := [3][2]int32{
{1, 2},
{3, 4},
{5, 6},
}
var sum int32
for i := 0; i < len(arr); i++ {
sum += arr[i][0]
sum += arr[i][1]
}
return sum + a + b
}