| ... | @@ -2,7 +2,6 @@ const std = @import("std"); | ... | @@ -2,7 +2,6 @@ const std = @import("std"); |
| 2 | const assert = std.debug.assert; | 2 | const assert = std.debug.assert; |
| 3 | const str = std.str; | 3 | const str = std.str; |
| 4 | const cstr = std.cstr; | 4 | const cstr = std.cstr; |
| 5 | const other = @import("other.zig"); | | |
| 6 | // TODO '_' identifier for unused variable bindings | 5 | // TODO '_' identifier for unused variable bindings |
| 7 | const test_return_type_type = @import("cases/return_type_type.zig"); | 6 | const test_return_type_type = @import("cases/return_type_type.zig"); |
| 8 | const test_zeroes = @import("cases/zeroes.zig"); | 7 | const test_zeroes = @import("cases/zeroes.zig"); |
| ... | @@ -1242,21 +1241,6 @@ fn test3_2(f: Test3Foo) { | ... | @@ -1242,21 +1241,6 @@ fn test3_2(f: Test3Foo) { |
| 1242 | | 1241 | |
| 1243 | | 1242 | |
| 1244 | | 1243 | |
| 1245 | #attribute("test") | | |
| 1246 | fn pubEnum() { | | |
| 1247 | pubEnumTest(other.APubEnum.Two); | | |
| 1248 | } | | |
| 1249 | fn pubEnumTest(foo: other.APubEnum) { | | |
| 1250 | assert(foo == other.APubEnum.Two); | | |
| 1251 | } | | |
| 1252 | | | |
| 1253 | | | |
| 1254 | #attribute("test") | | |
| 1255 | fn castWithImportedSymbol() { | | |
| 1256 | assert(other.size_t(42) == 42); | | |
| 1257 | } | | |
| 1258 | | | |
| 1259 | | | |
| 1260 | #attribute("test") | 1244 | #attribute("test") |
| 1261 | fn whileWithContinueExpr() { | 1245 | fn whileWithContinueExpr() { |
| 1262 | var sum: i32 = 0; | 1246 | var sum: i32 = 0; |
| ... | @@ -1637,20 +1621,6 @@ fn aGenericFn(inline T: type, inline a: T, b: T) -> T { | ... | @@ -1637,20 +1621,6 @@ fn aGenericFn(inline T: type, inline a: T, b: T) -> T { |
| 1637 | } | 1621 | } |
| 1638 | | 1622 | |
| 1639 | | 1623 | |
| 1640 | #attribute("test") | | |
| 1641 | fn namespaceDependsOnCompileVar() { | | |
| 1642 | if (some_namespace.a_bool) { | | |
| 1643 | assert(some_namespace.a_bool); | | |
| 1644 | } else { | | |
| 1645 | assert(!some_namespace.a_bool); | | |
| 1646 | } | | |
| 1647 | } | | |
| 1648 | const some_namespace = switch(@compileVar("os")) { | | |
| 1649 | linux => @import("a.zig"), | | |
| 1650 | else => @import("b.zig"), | | |
| 1651 | }; | | |
| 1652 | | | |
| 1653 | | | |
| 1654 | #attribute("test") | 1624 | #attribute("test") |
| 1655 | fn unsigned64BitDivision() { | 1625 | fn unsigned64BitDivision() { |
| 1656 | const result = div(1152921504606846976, 34359738365); | 1626 | const result = div(1152921504606846976, 34359738365); |