2016-09-26 21:09:43 -07:00
|
|
|
const assert = @import("std").debug.assert;
|
|
|
|
const other = @import("other.zig");
|
|
|
|
|
|
|
|
fn pubEnum() {
|
2016-09-27 23:33:32 -07:00
|
|
|
@setFnTest(this, true);
|
|
|
|
|
2016-09-26 21:09:43 -07:00
|
|
|
pubEnumTest(other.APubEnum.Two);
|
|
|
|
}
|
|
|
|
fn pubEnumTest(foo: other.APubEnum) {
|
|
|
|
assert(foo == other.APubEnum.Two);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn castWithImportedSymbol() {
|
2016-09-27 23:33:32 -07:00
|
|
|
@setFnTest(this, true);
|
|
|
|
|
2016-09-26 21:09:43 -07:00
|
|
|
assert(other.size_t(42) == 42);
|
|
|
|
}
|
|
|
|
|
|
|
|
|