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

16 lines
191 B
Go

// -*- go -*-
package main
// @Test 0 0 = 1161
func main(a, b int32) int {
val := "Hello, world!"
var sum int32
for i := 0; i < len(val); i++ {
sum += int32(val[i])
}
return sum
}