| ... | ... | @@ -1,7 +1,7 @@ |
| 1 | | // test std library |
| 2 | 1 | const std = @import("std"); |
| 3 | 2 | const assert = std.assert; |
| 4 | 3 | const str = std.str; |
| 4 | const other = @import("other.zig"); |
| 5 | 5 | |
| 6 | 6 | #attribute("test") |
| 7 | 7 | fn empty_function() {} |
| ... | ... | @@ -1244,3 +1244,11 @@ fn test3_2(f: Test3Foo) { |
| 1244 | 1244 | } |
| 1245 | 1245 | |
| 1246 | 1246 | |
| 1247 | |
| 1248 | #attribute("test") |
| 1249 | fn pub_enum() { |
| 1250 | pub_enum_test(other.APubEnum.Two); |
| 1251 | } |
| 1252 | fn pub_enum_test(foo: other.APubEnum) { |
| 1253 | assert(foo == other.APubEnum.Two); |
| 1254 | } |