test/wcc/data: grow the declarative compiler corpus to 1,224 fixtures
The r-prefixed waves absorb the runtime, reject, and byte-compare rows of the migrated native carriers; each fixture is one directory with one case.ww and a //ww:error, //ww:compile, //ww:run, or //ww:run-exit directive covering both frontends.
This commit is contained in:
8
test/wcc/data/r830_cast_base_u64_ctrl/case.ww
Normal file
8
test/wcc/data/r830_cast_base_u64_ctrl/case.ww
Normal file
@@ -0,0 +1,8 @@
|
||||
//ww:run-exit 20
|
||||
// Migrated from 830_cast_base_index row u64_ctl.
|
||||
package main;
|
||||
export fn main() i32 = {
|
||||
let a: [4]u64 = [10u64, 20u64, 30u64, 40u64];
|
||||
let i: int = 1;
|
||||
return ((&a): *[4]u64)[i]: i32;
|
||||
};
|
||||
Reference in New Issue
Block a user