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:
14
test/wcc/data/r956_modqual_mq_i64_bool_destr/case.ww
Normal file
14
test/wcc/data/r956_modqual_mq_i64_bool_destr/case.ww
Normal file
@@ -0,0 +1,14 @@
|
||||
//ww:run-exit 15
|
||||
package myf;
|
||||
export fn addi64(a: i64, b: i64) (i64, bool) = {
|
||||
let s: i64 = a + b;
|
||||
return (s, false);
|
||||
};
|
||||
package main;
|
||||
import myf;
|
||||
export fn main() i32 = {
|
||||
let (res, ov) = myf.addi64(7i64, 8i64);
|
||||
if (res != 15i64) { return 1; };
|
||||
if (ov) { return 2; };
|
||||
return (res: i32);
|
||||
};
|
||||
Reference in New Issue
Block a user