zig/test/cases/pub_enum/index.zig

18 lines
323 B
Zig
Raw Normal View History

2016-09-27 12:09:43 +08:00
const assert = @import("std").debug.assert;
const other = @import("other.zig");
#attribute("test")
fn pubEnum() {
pubEnumTest(other.APubEnum.Two);
}
fn pubEnumTest(foo: other.APubEnum) {
assert(foo == other.APubEnum.Two);
}
#attribute("test")
fn castWithImportedSymbol() {
assert(other.size_t(42) == 42);
}