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:
15
test/wcc/data/r700_variadic_forward/case.ww
Normal file
15
test/wcc/data/r700_variadic_forward/case.ww
Normal file
@@ -0,0 +1,15 @@
|
||||
//ww:run-exit 42
|
||||
// Migrated from 700_e2e row 131.
|
||||
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 wrap(prefix: i64, args: i64...) i64 = {
|
||||
return prefix + sum(args...);
|
||||
};
|
||||
fn main() i32 = {
|
||||
return wrap(2i64, 1i64, 2i64, 3i64, 4i64, 5i64, 7i64, 18i64): i32;
|
||||
};
|
||||
Reference in New Issue
Block a user