test: migrate 700_e2e rows to corpus fixtures; retire the carrier
136 rows migrated, 0 already owned, 3 wwstage-failing rows held out.
This commit is contained in:
14
test/wcc/data/r700_variadic_zero/case.ww
Normal file
14
test/wcc/data/r700_variadic_zero/case.ww
Normal file
@@ -0,0 +1,14 @@
|
||||
//ww:run-exit 42
|
||||
// Migrated from 700_e2e row 129.
|
||||
package main;
|
||||
fn sum(args: i64...) i64 = {
|
||||
let s: i64 = 0i64;
|
||||
let i: i32 = 0;
|
||||
for (i < args.len) { s += args[i]; i += 1; };
|
||||
return s;
|
||||
};
|
||||
fn main() i32 = {
|
||||
let a: i64 = sum();
|
||||
let b: i64 = sum(42i64);
|
||||
return (a + b): i32;
|
||||
};
|
||||
Reference in New Issue
Block a user