From 35b74d4013a81066cd45f4c99ec20907db310340 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 10 Jan 2016 01:25:20 -0700 Subject: order-independent declarations even from imports closes #42 --- test/run_tests.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test/run_tests.cpp') diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 153887e4c3..582b2671f2 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -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 { -- cgit v1.2.3