order-independent declarations even from imports

closes #42
This commit is contained in:
Andrew Kelley
2016-01-10 01:25:20 -07:00
parent 49d0971cd4
commit 35b74d4013
3 changed files with 100 additions and 92 deletions

View File

@@ -994,6 +994,7 @@ pub fn main(argc: isize, argv: &&u8, env: &&u8) -> i32 {
add_simple_case("order-independent declarations", R"SOURCE(
use "std.zig";
const z : #typeof(stdin_fileno) = 0;
const x : #typeof(y) = 1234;
const y : u16 = 5678;
pub fn main(argc: isize, argv: &&u8, env: &&u8) -> i32 {