mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 08:33:15 +00:00
24 lines
415 B
Zig
24 lines
415 B
Zig
const other = @import("cases/pub_enum/other.zig");
|
|
|
|
fn pubEnum() {
|
|
@setFnTest(this);
|
|
|
|
pubEnumTest(other.APubEnum.Two);
|
|
}
|
|
fn pubEnumTest(foo: other.APubEnum) {
|
|
assert(foo == other.APubEnum.Two);
|
|
}
|
|
|
|
fn castWithImportedSymbol() {
|
|
@setFnTest(this);
|
|
|
|
assert(other.size_t(42) == 42);
|
|
}
|
|
|
|
|
|
// TODO const assert = @import("std").debug.assert;
|
|
fn assert(ok: bool) {
|
|
if (!ok)
|
|
@unreachable();
|
|
}
|