2021-05-13 16:56:17 +03:00
|
|
|
// namespace: Compile
|
|
|
|
// expectation: Pass
|
|
|
|
// input_file: input/dummy.in
|
|
|
|
// cwd: imports
|
2021-05-05 19:31:25 +03:00
|
|
|
|
2020-08-15 11:58:33 +03:00
|
|
|
import test-import.( // local import
|
2020-06-30 03:47:23 +03:00
|
|
|
Point,
|
|
|
|
foo,
|
|
|
|
);
|
|
|
|
|
|
|
|
import bar.( // imports directory import
|
|
|
|
Bar,
|
2021-02-05 19:36:21 +03:00
|
|
|
baz.(Baz, Bazzar),
|
2020-06-30 03:47:23 +03:00
|
|
|
bat.bat.Bat,
|
|
|
|
);
|
|
|
|
|
|
|
|
import car.Car; // imports directory import
|
|
|
|
|
2021-05-13 16:56:17 +03:00
|
|
|
function main(y: bool) -> bool {
|
2021-03-18 22:19:07 +03:00
|
|
|
const point = Point { x: 1u32, y: 1u32 };
|
|
|
|
const foo = foo();
|
2020-06-30 03:47:23 +03:00
|
|
|
|
2021-03-18 22:19:07 +03:00
|
|
|
const bar = Bar { r: 1u32 };
|
|
|
|
const baz = Baz { z: 1u32 };
|
|
|
|
const bazzar = Bazzar { a: 1u32 };
|
|
|
|
const bat = Bat { t: 1u32 };
|
2020-06-30 03:47:23 +03:00
|
|
|
|
2021-03-18 22:19:07 +03:00
|
|
|
const car = Car { c: 1u32 };
|
2020-06-30 03:47:23 +03:00
|
|
|
|
2021-07-01 23:40:29 +03:00
|
|
|
return (car.c == 1u32) == y;
|
2021-05-05 19:31:25 +03:00
|
|
|
}
|