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

19 lines
355 B
Go

// -*- go -*-
package main
// @Test 42 1 = 42
// @Test 42 2 = 84
// @Test 65536 0 = 0
// @Test 65536 1 = 65536
// @Test 65536 65536 = 4294967296
// @Hex
// @Test 0xff 0xff = 0xfe01
// @Test 0xffff 0xff = 0xfeff01
// @Test 0xff00 0x10 = 0xff000
// @Test 0xff00 0x100 = 0xff0000
// @Test 0xff 0xff = 0xfe01
func main(a, b uint64) uint {
return a * b
}