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:
13
test/wcc/data/r700_tuple3_range_destr/case.ww
Normal file
13
test/wcc/data/r700_tuple3_range_destr/case.ww
Normal file
@@ -0,0 +1,13 @@
|
||||
//ww:run-exit 42
|
||||
// Migrated from 700_e2e row 47.
|
||||
package main;
|
||||
fn main() i32 = {
|
||||
let buf: [3]i64;
|
||||
buf[0] = 5; buf[1] = 7; buf[2] = 30;
|
||||
let s: [](i64, i64, i64);
|
||||
s.ptr = buf.ptr: *(i64, i64, i64);
|
||||
s.len = 1; s.cap = 1;
|
||||
let total: i64 = 0;
|
||||
for (let (a, b, c) .. s) { total += a + b + c; };
|
||||
return total: i32;
|
||||
};
|
||||
Reference in New Issue
Block a user