diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-10 01:25:20 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-10 01:25:20 -0700 |
| commit | 35b74d4013a81066cd45f4c99ec20907db310340 (patch) | |
| tree | ce756e0719a57bd6808a86a67cc876f54f7ab8f6 /test/run_tests.cpp | |
| parent | 49d0971cd4f6aa3f897a0f36272c05c641e25f79 (diff) | |
| download | zig-35b74d4013a81066cd45f4c99ec20907db310340.tar.gz zig-35b74d4013a81066cd45f4c99ec20907db310340.zip | |
order-independent declarations even from imports
closes #42
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |
